ITADN

[🐞] Qwik integration doesn't respect Astro config build.assetsPrefix

#262Openianrose 创建于 2025-06-10
I
ianrosecommented
### Which component is affected? Integration ### Describe the bug I am setting Astro's config with an `assetsPrefix` for `build`. This is being done to have the app's assets on a CDN. ``` ... build: { inlineStylesheets: 'always', assetsPrefix: 'https://cdn.domain.com/myapp/', }, ... ``` Non-qwik assets do have the correct prefixed path resolution however Qwik client scripts do not. ### Reproduction https://bolt.new/~/sb1-iixv7ivt ### Steps to reproduce Run `npm run build` `npm run serve`. ### System Info ```shell System: OS: macOS 15.3.1 CPU: (10) arm64 Apple M1 Pro Memory: 139.64 MB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 22.14.0 - ~/.nvm/versions/node/v22.14.0/bin/node npm: 10.9.2 - ~/.nvm/versions/node/v22.14.0/bin/npm pnpm: 10.5.2 - /opt/homebrew/bin/pnpm bun: 1.2.4 - /opt/homebrew/bin/bun Browsers: Chrome: 137.0.7151.69 Edge: 137.0.3296.68 Safari: 18.3 npmPackages: typescript: ^5.8.3 => 5.8.3 ``` ### Additional Information _No response_
1 条评论