Skip to content

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

@ianrose

Description

@ianrose

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions