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[],