From 63b48734c684afe79bc2806262161dfbf37c6382 Mon Sep 17 00:00:00 2001 From: mbaharip <62494292+mbahArip@users.noreply.github.com> Date: Fri, 24 Jan 2025 17:48:14 +0700 Subject: [PATCH] fix: basePath that causing build failure --- src/config/gIndex.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/gIndex.config.ts b/src/config/gIndex.config.ts index 086281f..d0a13ae 100644 --- a/src/config/gIndex.config.ts +++ b/src/config/gIndex.config.ts @@ -17,7 +17,7 @@ const config: z.input = { * @default process.env.NEXT_PUBLIC_DOMAIN * @fallback process.env.NEXT_PUBLIC_VERCEL_URL */ - basePath: IS_DEV ? "http://localhost:3000" : new URL(BASE_URL).toString(), + basePath: IS_DEV ? "http://localhost:3000" : `https://${BASE_URL}`, /** * Show deploy guide dropdown on navbar