diff --git a/src/map-interface/map-page/index.ts b/src/map-interface/map-page/index.ts index 91e157ee..e018390a 100644 --- a/src/map-interface/map-page/index.ts +++ b/src/map-interface/map-page/index.ts @@ -16,6 +16,7 @@ import { TimescalePanel } from "../paleo"; import { MenuPage, PanelCard } from "./menu"; import { mapPagePrefix } from "../settings"; import MapContainer from "./map-view"; +import DevIndex from "../../dev"; const ElevationChart = loadable(() => import("../components/elevation-chart")); const InfoDrawer = loadable(() => import("../components/info-drawer")); @@ -109,6 +110,7 @@ function MapPageRoutes() { }) ) ), + h(Route, { path: mapPagePrefix + "/dev/*", element: h(DevIndex) }), h(Route, { path: "*", element: h(MapPage) }), ]); } diff --git a/vite.config.ts b/vite.config.ts index 59df0962..49105450 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -30,6 +30,7 @@ for (const [key, value] of Object.entries(gitEnv)) { } const cesiumRoot = require.resolve("cesium").replace("/index.cjs", "/Build"); +const cesiumBuildPath = path.resolve(cesiumRoot, "Cesium"); const config: UserConfig = { cacheDir: ".vite", @@ -54,7 +55,10 @@ const config: UserConfig = { to allow for client-side routing */ //rewriteAll(), ssr(), - cesium({ cesiumBuildPath: cesiumRoot, cesiumBuildRootPath: cesiumRoot }), + cesium({ + cesiumBuildPath: cesiumBuildPath, + cesiumBuildRootPath: cesiumRoot, + }), ], envDir: path.resolve(__dirname), build: {