From b8a7926fd28ebd88b2250157061a460be28280bb Mon Sep 17 00:00:00 2001 From: mbaharip <62494292+mbahArip@users.noreply.github.com> Date: Fri, 12 Apr 2024 05:34:49 +0700 Subject: [PATCH] Prioritize to use `NEXT_PUBLIC_DOMAIN` --- src/config/gIndex.config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/config/gIndex.config.ts b/src/config/gIndex.config.ts index 3892a54..02cb3fa 100644 --- a/src/config/gIndex.config.ts +++ b/src/config/gIndex.config.ts @@ -13,12 +13,13 @@ const config: z.input = { * If you're using another port for development, you can set it here * * @default process.env.NEXT_PUBLIC_DOMAIN + * @fallback process.env.NEXT_PUBLIC_VERCEL_URL */ basePath: process.env.NODE_ENV === "development" ? "http://localhost:3000" : `https://${ - process.env.NEXT_PUBLIC_VERCEL_URL || process.env.NEXT_PUBLIC_DOMAIN + process.env.NEXT_PUBLIC_DOMAIN || process.env.NEXT_PUBLIC_VERCEL_URL }`, /**