mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-04 23:17:12 +01:00
Replace next-auth with better-auth, adding magic link email login as the primary auth method and GitHub OAuth as an optional social provider. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
13 lines
265 B
TypeScript
13 lines
265 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
|
|
} |