This commit is contained in:
Travis Fischer
2022-10-14 18:18:42 -04:00
parent a62a30a321
commit 74c7d2a0ba
3 changed files with 7 additions and 2 deletions

View File

@@ -125,7 +125,9 @@ export const redisNamespace: string | null = getEnv(
export const isServer = typeof window === 'undefined'
export const port = getEnv('PORT', '3000')
export const host = isDev ? `http://localhost:${port}` : `https://${domain}`
export const host = isDev
? `http://localhost:${port}`
: `https://${process.env.VERCEL_URL || domain}`
export const apiBaseUrl = `/api`