Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PB-1176: Fix cesium static assets location #1164

Merged
merged 1 commit into from
Dec 10, 2024
Merged

Conversation

ltshb
Copy link
Contributor

@ltshb ltshb commented Dec 10, 2024

During the build the cesium static assets were put into the root of the application.
This was an issue for our deployment strategy were we have all assets in a
versioned folder and were we first deploy the versioned folder before deploying
the entry point index.html that point to the versioned folder. This allow for
a pseudo atomic deployment.

So now all the cesium static assets have been placed into VERSION/cesium/ path.

Test link

@ltshb ltshb requested a review from pakb December 10, 2024 06:27
Copy link

cypress bot commented Dec 10, 2024

web-mapviewer    Run #4054

Run Properties:  status check passed Passed #4054  •  git commit 3387418f93: PB-1176: Fix cesium static assets location
Project web-mapviewer
Branch Review feat-PB-1176-cesium-build
Run status status check passed Passed #4054
Run duration 04m 03s
Commit git commit 3387418f93: PB-1176: Fix cesium static assets location
Committer Brice Schaffner
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 21
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 215
View all changes introduced in this branch ↗︎

vite.config.mts Outdated
@@ -21,6 +21,7 @@ if (!appVersion) {
const __dirname = dirname(fileURLToPath(import.meta.url))
const cesiumSource = `${__dirname}/node_modules/cesium/Source`
const cesiumWorkers = '../Build/Cesium/Workers'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure it would also be a good idea to replace this relative path with something similar to the line above

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but then we need to modify further down. However I'll remove this cesiumWorkers constant as it is used only in one place and use the path hardcoced like for the other assets, it make the code easier to understand.

During the build the cesium static assets were put into the root of the application.
This was an issue for our deployment strategy were we have all assets in a
versioned folder and were we first deploy the versioned folder before deploying
the entry point index.html that point to the versioned folder. This allow for
a pseudo atomic deployment.

So now all the cesium static assets have been placed into VERSION/cesium/ path.
@ltshb ltshb force-pushed the feat-PB-1176-cesium-build branch from 7ae01a7 to 3387418 Compare December 10, 2024 12:27
@ltshb ltshb merged commit 57f8d50 into develop Dec 10, 2024
6 checks passed
@ltshb ltshb deleted the feat-PB-1176-cesium-build branch December 10, 2024 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants