From 56db1605980d59e7b03093c1f0e47f7c3956a7b0 Mon Sep 17 00:00:00 2001 From: Alvaro Date: Wed, 11 Oct 2023 10:10:11 +0200 Subject: [PATCH] fix vercel url --- pruebas/02-bazar-universal/aiv4ro/src/constants/env.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pruebas/02-bazar-universal/aiv4ro/src/constants/env.ts b/pruebas/02-bazar-universal/aiv4ro/src/constants/env.ts index a0d3b3930..7d0d23587 100644 --- a/pruebas/02-bazar-universal/aiv4ro/src/constants/env.ts +++ b/pruebas/02-bazar-universal/aiv4ro/src/constants/env.ts @@ -1 +1,2 @@ -export const hostUrl = process.env.VERCEL_URL ?? 'http://localhost:3000' +const vercelUrl = process.env.VERCEL_URL ? `https://${process.env.VERCEL_URL}` : null +export const hostUrl = vercelUrl ?? 'http://localhost:3000'