chore(env): remove unused vercel-url env variable (#1779)
* chore(env): remove unused vercel-url env variable * chore: remove vercel-json file
This commit is contained in:
@@ -3,10 +3,6 @@ import { z } from "zod";
|
|||||||
|
|
||||||
export const env = createEnv({
|
export const env = createEnv({
|
||||||
shared: {
|
shared: {
|
||||||
VERCEL_URL: z
|
|
||||||
.string()
|
|
||||||
.optional()
|
|
||||||
.transform((url) => (url ? `https://${url}` : undefined)),
|
|
||||||
PORT: z.coerce.number().default(3000),
|
PORT: z.coerce.number().default(3000),
|
||||||
NODE_ENV: z.enum(["development", "production", "test"]).default("development"),
|
NODE_ENV: z.enum(["development", "production", "test"]).default("development"),
|
||||||
},
|
},
|
||||||
@@ -30,7 +26,6 @@ export const env = createEnv({
|
|||||||
* Destructure all variables from `process.env` to make sure they aren't tree-shaken away.
|
* Destructure all variables from `process.env` to make sure they aren't tree-shaken away.
|
||||||
*/
|
*/
|
||||||
runtimeEnv: {
|
runtimeEnv: {
|
||||||
VERCEL_URL: process.env.VERCEL_URL,
|
|
||||||
PORT: process.env.PORT,
|
PORT: process.env.PORT,
|
||||||
NODE_ENV: process.env.NODE_ENV,
|
NODE_ENV: process.env.NODE_ENV,
|
||||||
DOCKER_HOSTNAMES: process.env.DOCKER_HOSTNAMES,
|
DOCKER_HOSTNAMES: process.env.DOCKER_HOSTNAMES,
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ export const fetchApi = createTRPCClient<AppRouter>({
|
|||||||
|
|
||||||
function getBaseUrl() {
|
function getBaseUrl() {
|
||||||
if (typeof window !== "undefined") return window.location.origin;
|
if (typeof window !== "undefined") return window.location.origin;
|
||||||
if (process.env.VERCEL_URL) return `https://${process.env.VERCEL_URL}`;
|
|
||||||
return `http://localhost:${process.env.PORT ?? 3000}`;
|
return `http://localhost:${process.env.PORT ?? 3000}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
45
turbo.json
45
turbo.json
@@ -1,8 +1,6 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://turborepo.org/schema.json",
|
"$schema": "https://turborepo.org/schema.json",
|
||||||
"globalDependencies": [
|
"globalDependencies": ["**/.env"],
|
||||||
"**/.env"
|
|
||||||
],
|
|
||||||
"globalEnv": [
|
"globalEnv": [
|
||||||
"AUTH_LDAP_BASE",
|
"AUTH_LDAP_BASE",
|
||||||
"AUTH_LDAP_BIND_DN",
|
"AUTH_LDAP_BIND_DN",
|
||||||
@@ -40,53 +38,32 @@
|
|||||||
"DOCKER_PORTS",
|
"DOCKER_PORTS",
|
||||||
"NODE_ENV",
|
"NODE_ENV",
|
||||||
"PORT",
|
"PORT",
|
||||||
"SKIP_ENV_VALIDATION",
|
"SKIP_ENV_VALIDATION"
|
||||||
"VERCEL_URL"
|
|
||||||
],
|
],
|
||||||
"ui": "stream",
|
"ui": "stream",
|
||||||
"tasks": {
|
"tasks": {
|
||||||
"topo": {
|
"topo": {
|
||||||
"dependsOn": [
|
"dependsOn": ["^topo"]
|
||||||
"^topo"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"build": {
|
"build": {
|
||||||
"dependsOn": [
|
"dependsOn": ["^build"],
|
||||||
"^build"
|
"outputs": [".next/**", "!.next/cache/**", "next-env.d.ts", ".output/**", ".vercel/output/**"]
|
||||||
],
|
|
||||||
"outputs": [
|
|
||||||
".next/**",
|
|
||||||
"!.next/cache/**",
|
|
||||||
"next-env.d.ts",
|
|
||||||
".output/**",
|
|
||||||
".vercel/output/**"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"dev": {
|
"dev": {
|
||||||
"persistent": true,
|
"persistent": true,
|
||||||
"cache": false
|
"cache": false
|
||||||
},
|
},
|
||||||
"format": {
|
"format": {
|
||||||
"outputs": [
|
"outputs": ["node_modules/.cache/.prettiercache"],
|
||||||
"node_modules/.cache/.prettiercache"
|
|
||||||
],
|
|
||||||
"outputLogs": "new-only"
|
"outputLogs": "new-only"
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"dependsOn": [
|
"dependsOn": ["^topo"],
|
||||||
"^topo"
|
"outputs": ["node_modules/.cache/.eslintcache"]
|
||||||
],
|
|
||||||
"outputs": [
|
|
||||||
"node_modules/.cache/.eslintcache"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"typecheck": {
|
"typecheck": {
|
||||||
"dependsOn": [
|
"dependsOn": ["^topo"],
|
||||||
"^topo"
|
"outputs": ["node_modules/.cache/tsbuildinfo.json"]
|
||||||
],
|
|
||||||
"outputs": [
|
|
||||||
"node_modules/.cache/tsbuildinfo.json"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"clean": {
|
"clean": {
|
||||||
"cache": false
|
"cache": false
|
||||||
@@ -95,4 +72,4 @@
|
|||||||
"cache": false
|
"cache": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
"github": {
|
|
||||||
"silent": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user