remove use of VERCEL_URL
This commit is contained in:
parent
7c8e2c9947
commit
ba092152f2
2 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,7 @@ const nextConfig = {
|
||||||
domains: ["avatars.githubusercontent.com"]
|
domains: ["avatars.githubusercontent.com"]
|
||||||
},
|
},
|
||||||
env: {
|
env: {
|
||||||
NEXT_PUBLIC_DRIFT_URL: process.env.VERCEL_URL || process.env.DRIFT_URL
|
NEXT_PUBLIC_DRIFT_URL: process.env.DRIFT_URL
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -66,7 +66,7 @@ export const config = (env: Environment): Config => {
|
||||||
registration_password: env.REGISTRATION_PASSWORD ?? "",
|
registration_password: env.REGISTRATION_PASSWORD ?? "",
|
||||||
welcome_content: env.WELCOME_CONTENT ?? "Welcome to Drift.",
|
welcome_content: env.WELCOME_CONTENT ?? "Welcome to Drift.",
|
||||||
welcome_title: env.WELCOME_TITLE ?? "Drift",
|
welcome_title: env.WELCOME_TITLE ?? "Drift",
|
||||||
url: process.env.VERCEL_URL ?? throwIfUndefined("DRIFT_URL"),
|
url: throwIfUndefined("DRIFT_URL"),
|
||||||
github_client_id: env.GITHUB_CLIENT_ID ?? "",
|
github_client_id: env.GITHUB_CLIENT_ID ?? "",
|
||||||
github_client_secret: env.GITHUB_CLIENT_SECRET ?? "",
|
github_client_secret: env.GITHUB_CLIENT_SECRET ?? "",
|
||||||
nextauth_secret: throwIfUndefined("NEXTAUTH_SECRET"),
|
nextauth_secret: throwIfUndefined("NEXTAUTH_SECRET"),
|
||||||
|
|
Loading…
Reference in a new issue