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 react from "@astrojs/react";
|
||||||
import tailwind from "@astrojs/tailwind";
|
import tailwind from "@astrojs/tailwind";
|
||||||
|
|
||||||
|
const devMode = import.meta.env.DEV
|
||||||
|
|
||||||
// https://astro.build/config
|
// https://astro.build/config
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
integrations: [react(), tailwind({
|
integrations: [react(), tailwind({
|
||||||
applyBaseStyles: false
|
applyBaseStyles: false
|
||||||
})],
|
})],
|
||||||
output: "static",
|
output: "static",
|
||||||
site: "https://konulukonum.log101.dev"
|
site: devMode ? "http://localhost:4321" : "https://konulukonum.log101.dev"
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
import L from "leaflet"
|
import L from "leaflet"
|
||||||
|
|
||||||
var targetLocationIcon = L.icon({
|
var targetLocationIcon = L.icon({
|
||||||
iconUrl: "https://konulukonum.log101.dev/goal.svg",
|
iconUrl: "/goal.svg",
|
||||||
iconSize: [32, 32],
|
iconSize: [32, 32],
|
||||||
})
|
})
|
||||||
|
|
||||||
var currentLocationIcon = L.icon({
|
var currentLocationIcon = L.icon({
|
||||||
iconUrl: "https://konulukonum.log101.dev/blue-dot.png",
|
iconUrl: "/blue-dot.png",
|
||||||
iconSize: [32, 32],
|
iconSize: [32, 32],
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user