chore: change site on dev mode

This commit is contained in:
log101 2024-08-06 13:46:28 +03:00
parent 8f61c0f99f
commit 0330439362
2 changed files with 5 additions and 3 deletions

View File

@ -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"
});

View File

@ -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],
})