mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-04 06:57:12 +01:00
add url helper
This commit is contained in:
committed by
Thomas Ruoff
parent
56c8263e90
commit
cd5fa56807
7
helpers/url.ts
Normal file
7
helpers/url.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
const URL = process.env.VERCEL_URL
|
||||
? `https://${process.env.VERCEL_URL}`
|
||||
: 'http://localhost:3000'
|
||||
|
||||
export function getBaseURL(): string {
|
||||
return URL
|
||||
}
|
||||
Reference in New Issue
Block a user