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

Base url issue? #137

Closed
wirhabenzeit opened this issue Jun 25, 2024 · 2 comments
Closed

Base url issue? #137

wirhabenzeit opened this issue Jun 25, 2024 · 2 comments

Comments

@wirhabenzeit
Copy link

I just tried adding qwikdev() to my integrations of an existing astro project (astro 4.11.0, @qwikdev/astro 0.5.16, @builder.io/qwik 1.5.6).

Everything works great in dev mode. However, once I build and preview, I get multiple 404s in the browser like http://localhost:4321/base/_astro/hoisted.DwPdqVDm.js net::ERR_ABORTED 404 (Not Found) and basically all client side javascript stops working.

When I look at my dist directory it looks like

_astro/
qwik-prefetch-service-worker.js
base/
   qwik-prefetch-service-worker.js
   _astro/

with qwikdev() while without qwikdev() the base folder does not exist in the dist directory.

The configuration of the base url is set with base: "/base" in astro.config.ts. Is there anything I can do fix the qwikdev integration to work with my base url setup? Or is this a bug in in the integration?

@thejackshelton
Copy link
Member

thejackshelton commented Jul 11, 2024

Try Qwik Astro 0.6.1 and Qwik 1.7.1, do you still get the issue?

@thejackshelton
Copy link
Member

Closing. Happy to take another look with a minimal reproduction on the latest versions, as I know the logic here has changed in core.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants