remove use of VERCEL_URL

This commit is contained in:
Max Leiter 2023-01-13 00:10:15 -08:00
parent 7c8e2c9947
commit ba092152f2
2 changed files with 2 additions and 2 deletions

View file

@ -25,7 +25,7 @@ const nextConfig = {
domains: ["avatars.githubusercontent.com"]
},
env: {
NEXT_PUBLIC_DRIFT_URL: process.env.VERCEL_URL || process.env.DRIFT_URL
NEXT_PUBLIC_DRIFT_URL: process.env.DRIFT_URL
}
}

View file

@ -66,7 +66,7 @@ export const config = (env: Environment): Config => {
registration_password: env.REGISTRATION_PASSWORD ?? "",
welcome_content: env.WELCOME_CONTENT ?? "Welcome to 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_secret: env.GITHUB_CLIENT_SECRET ?? "",
nextauth_secret: throwIfUndefined("NEXTAUTH_SECRET"),