From 0825d04b8f8447c8ba2448c6b97177714eebc8b9 Mon Sep 17 00:00:00 2001 From: Alexis <35.alexis.pele@gmail.com> Date: Sun, 15 Oct 2023 10:04:43 +0200 Subject: [PATCH] Test with localhost setup --- astro.config.mjs | 1 - src/components/maps/worldStore.ts | 6 +----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index 401f83d1..fe901fbf 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -10,5 +10,4 @@ export default defineConfig({ adapter: nodeJs({ mode: 'standalone' }), - site: 'https://maps.alexcreates.fr' }); diff --git a/src/components/maps/worldStore.ts b/src/components/maps/worldStore.ts index 95b67c10..e81bb7c3 100644 --- a/src/components/maps/worldStore.ts +++ b/src/components/maps/worldStore.ts @@ -5,11 +5,7 @@ let baseUrl: string const isDev = import.meta.env.DEV; -if (isDev) { - baseUrl = "http://localhost:4321/" -} else { - baseUrl = import.meta.env.SITE -} +baseUrl = "http://localhost:4321/" export const $world = deepMap({ markers: [] as MapMarker[],