-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Deploy new debug client to a CDN #5578
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev-2.x #5578 +/- ##
=============================================
- Coverage 67.35% 67.35% -0.01%
Complexity 16150 16150
=============================================
Files 1857 1857
Lines 71075 71075
Branches 7402 7402
=============================================
- Hits 47872 47870 -2
- Misses 20745 20746 +1
- Partials 2458 2459 +1 ☔ View full report in Codecov by Sentry. |
@testower Is it possible to override the Vite base config setting? That way we would save the ugly |
Yes have a look at the vite build cli options https://main.vitejs.dev/guide/cli.html#options-1 although I have never tested with a full url as opposed to just a path. |
I just tested this and it works:
outputs in index.html:
|
The benefit of use the base config option is that it will also fix any urls inside the code that refer to static assets. As I mentioned we'll need to fix the image imports so they are included as well. |
6358504
to
9cd3460
Compare
9cd3460
to
43d2cd7
Compare
@testower Do you have an opinion if the versioned folders should all be at the root level or put into subdirectories like |
No strong opinion. I guess sub-folders will ease cleaning up. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved assuming it will be rebased on top of #5579
I went with the year/month prefix. |
I'm quite surprised that this worked on the first try. Here is what the commits to dev-2.x look like: d7e9ecd And here are the commits to the assets repo: opentripplanner/debug-client-assets@066674f I would have expected more assets for the modes and not just trolleybus and monorail. @testower, does this look ok to you? |
Yes this is indeed expected: https://vitejs.dev/config/build-options.html#build-assetsinlinelimit |
Summary
This adds a new CI workflow that:
This has the advantage of not needing to faff with npm when you do local development of OTP.
Issue
#5330
Documentation
Line comments.