Files
pfadi-bussle/helpers/url.ts
2020-11-11 00:02:59 +01:00

14 lines
266 B
TypeScript

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
}