diff --git a/astro.config.mjs b/astro.config.mjs index e4b24c4..1488e07 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -2,11 +2,13 @@ import { defineConfig } from 'astro/config'; import react from "@astrojs/react"; import tailwind from "@astrojs/tailwind"; +const devMode = import.meta.env.DEV + // https://astro.build/config export default defineConfig({ integrations: [react(), tailwind({ applyBaseStyles: false })], output: "static", - site: "https://konulukonum.log101.dev" + site: devMode ? "http://localhost:4321" : "https://konulukonum.log101.dev" }); diff --git a/src/components/Leaflet/icons.ts b/src/components/Leaflet/icons.ts index a20b16f..af6c137 100644 --- a/src/components/Leaflet/icons.ts +++ b/src/components/Leaflet/icons.ts @@ -1,12 +1,12 @@ import L from "leaflet" var targetLocationIcon = L.icon({ - iconUrl: "https://konulukonum.log101.dev/goal.svg", + iconUrl: "/goal.svg", iconSize: [32, 32], }) var currentLocationIcon = L.icon({ - iconUrl: "https://konulukonum.log101.dev/blue-dot.png", + iconUrl: "/blue-dot.png", iconSize: [32, 32], })