mirror of
https://github.com/Nezumi-2711/next-gdrive-index.git
synced 2026-09-22 13:38:38 +00:00
Set NEXT_PUBLIC_DOMAIN as a fallback of NEXT_PUBLIC_VERCEL_URL
This commit is contained in:
@@ -4,5 +4,6 @@ NEXT_PUBLIC_ENCRYPTION_KEY=
|
||||
NEXT_PUBLIC_SITE_PASSWORD=
|
||||
|
||||
# Only fill with the domain name, without the protocol and trailing slash
|
||||
# This will be used as a fallback if VERCEL_URL is not available
|
||||
# Example: https://drive-demo.mbaharip.com -> drive.mbaharip.com
|
||||
NEXT_PUBLIC_DOMAIN=
|
||||
|
||||
@@ -17,7 +17,9 @@ const config: z.input<typeof Schema_Config> = {
|
||||
basePath:
|
||||
process.env.NODE_ENV === "development"
|
||||
? "http://localhost:3000"
|
||||
: `https://${process.env.NEXT_PUBLIC_DOMAIN}`,
|
||||
: `https://${
|
||||
process.env.NEXT_PUBLIC_VERCEL_URL || process.env.NEXT_PUBLIC_DOMAIN
|
||||
}`,
|
||||
|
||||
/**
|
||||
* DEPRECATED
|
||||
|
||||
Reference in New Issue
Block a user