Skip to content

Commit

Permalink
Merge branch 'dev-layers' into ssr
Browse files Browse the repository at this point in the history
* dev-layers:
  Added back development examples
  • Loading branch information
davenquinn committed Oct 12, 2023
2 parents b484679 + 2a385d5 commit b579d94
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/map-interface/map-page/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down Expand Up @@ -109,6 +110,7 @@ function MapPageRoutes() {
})
)
),
h(Route, { path: mapPagePrefix + "/dev/*", element: h(DevIndex) }),
h(Route, { path: "*", element: h(MapPage) }),
]);
}
Expand Down
6 changes: 5 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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: {
Expand Down

0 comments on commit b579d94

Please sign in to comment.