mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +01:00
only use VERCEL_URL when SITE_URL is missing
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
const URL = process.env.VERCEL_URL
|
||||
? `https://${process.env.VERCEL_URL}`
|
||||
: 'http://localhost:3000'
|
||||
let URL: string
|
||||
|
||||
if (process.env.SITE_URL) {
|
||||
URL = `https://${process.env.SITE_URL}`
|
||||
} else if (process.env.VERCEL_URL) {
|
||||
URL = `https://${process.env.VERCEL_URL}`
|
||||
} else {
|
||||
URL = 'http://localhost:3000'
|
||||
}
|
||||
|
||||
export function getBaseURL(): string {
|
||||
return URL
|
||||
|
||||
Reference in New Issue
Block a user