From ba092152f2a9712a019b0d47c479e171b8f612fd Mon Sep 17 00:00:00 2001 From: Max Leiter Date: Fri, 13 Jan 2023 00:10:15 -0800 Subject: [PATCH] remove use of VERCEL_URL --- next.config.mjs | 2 +- src/lib/config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/next.config.mjs b/next.config.mjs index 6ad702a7..d2320ce2 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -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 } } diff --git a/src/lib/config.ts b/src/lib/config.ts index 7b540aa0..f1dbceed 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -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"),