You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is that we want to place generated Qwik static files on CDN for better performance.
At the moment, Qwik does not have a built-in mechanism for this. Therefore, as a solution, we replace the file paths using the Vite configuration, but this leads to the fact that it doesn’t support absolute paths as it breaks build folder structure. And also it breaks SSR routing and navigation via hook useNavigate() as it appends CDN prefix to all routes.
Perhaps we are not using the correct way to solve this and there are better ones?
Which component is affected?
Qwik Rollup / Vite plugin
Describe the bug
The problem is that we want to place generated Qwik static files on CDN for better performance.
At the moment, Qwik does not have a built-in mechanism for this. Therefore, as a solution, we replace the file paths using the Vite configuration, but this leads to the fact that it doesn’t support absolute paths as it breaks build folder structure. And also it breaks SSR routing and navigation via hook useNavigate() as it appends CDN prefix to all routes.
Perhaps we are not using the correct way to solve this and there are better ones?
Reproduction
https://stackblitz.com/edit/github-b9xsukss
Steps to reproduce
ASSETS_CDN_URL=https://example.com/hello/word npm run build
./build
path.q-WYzV_MAb.js
).System Info
Additional Information
No response
The text was updated successfully, but these errors were encountered: