Files
pfadi-bussle/helpers/url.ts
Thomas Ruoff cd5fa56807 add url helper
2020-09-18 00:53:10 +02:00

8 lines
158 B
TypeScript

const URL = process.env.VERCEL_URL
? `https://${process.env.VERCEL_URL}`
: 'http://localhost:3000'
export function getBaseURL(): string {
return URL
}