Skip to content

Commit

Permalink
fix(web): pass ion token to each layer (#558)
Browse files Browse the repository at this point in the history
Co-authored-by: KaWaite <[email protected]>
  • Loading branch information
keiya01 and KaWaite authored Jul 5, 2023
1 parent c603f7b commit 822d031
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions web/src/classic/components/molecules/Visualizer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ export default function Visualizer({
sceneProperty={overriddenSceneProperty}
pluginBaseUrl={pluginBaseUrl}
selectedLayerId={selectedLayerId}
meta={engineMeta}
layers={layers}
isLayerHidden={isLayerHidden}
overriddenProperties={layerOverriddenProperties}
Expand Down
4 changes: 4 additions & 0 deletions web/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ function config(): Plugin {
{
api: "http://localhost:8080/api",
published: "/published.html?alias={}",
// If Cesium version becomes outdated, you can set the Ion token as an environment variables here.
// ex: `CESIUM_ION_ACCESS_TOKEN="ION_TOKEN" yarn start`
// ref: https://github.com/CesiumGS/cesium/blob/main/packages/engine/Source/Core/Ion.js#L6-L7
cesiumIonAccessToken: process.env.CESIUM_ION_ACCESS_TOKEN,
...readEnv("REEARTH_WEB", {
source: loadEnv(
server.config.mode,
Expand Down

0 comments on commit 822d031

Please sign in to comment.