chore: change site on dev mode
This commit is contained in:
parent
8f61c0f99f
commit
0330439362
|
@ -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"
|
||||
});
|
||||
|
|
|
@ -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],
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user