From b6128f55258141abb8dfe0e19eee869d2a2f8302 Mon Sep 17 00:00:00 2001 From: Alexis <35.alexis.pele@gmail.com> Date: Sun, 15 Oct 2023 10:26:49 +0200 Subject: [PATCH] Added official URL --- astro.config.mjs | 1 + src/components/maps/worldStore.ts | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/astro.config.mjs b/astro.config.mjs index fe901fbf..401f83d1 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -10,4 +10,5 @@ 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 abe8dc0b..3c5e1d4e 100644 --- a/src/components/maps/worldStore.ts +++ b/src/components/maps/worldStore.ts @@ -5,7 +5,11 @@ let baseUrl: string const isDev = import.meta.env.DEV; -baseUrl = "http://localhost:4321" +if (isDev) { + baseUrl = "http://localhost:4321" +} else { + baseUrl = import.meta.env.SITE +} export const $world = deepMap({ markers: [] as MapMarker[],