Closed duncan1a closed 5 months ago
I've reproduced this with a fresh v1 qwik app. All I did was add a dynamic route under the /demo/flower/ route that comes with the initial setup. I've uploaded it here including the /dist folder
https://github.com/duncan1a/qwik-v1
I've run it with npm/http-server ( https://www.npmjs.com/package/http-server/v/13.0.1 )
Have the same problem !
Solved the problem by using Netlify Edge ^^
I have the same problem. Probably I will also use the edge adapter, but would be nice to have this fixed
@othy54 Can you please explain here...how to be solved it? I'm also facing same issue.
@othy54 Can you please explain here...how to be solved it? I'm also facing same issue.
npm run qwik add netlify-edge
this is because when rendering static pages you need to know how to get the data https://qwik.dev/docs/guides/static-site-generation/#dynamic-ssg-routes
Thanks @PatrickJS for your help
Which component is affected?
Qwik-city [routing]
... Or possibly qwik runtime
Describe the bug
I'm building for firebase hosting, so I'm doing static HTML builds.
When I have a dynamic route it's returning 404s. When I run the dev server with
npm run dev
they work fine. It doesn't look like it's building the html files for the dynamic routesReproduction
https://corrineskitchen-dev.web.app/contact/test
Steps to reproduce
Eg, I have a contact page
routes/contact/index.tsx
. If I make a dynamic routeroutes/contact/[test]/index.tsx
which is just a component that returns "Hello Qwik" - so as simple as possible, I get a 404 in the production build.The same happens if the route is only a dynamic route, eg:
routes/post/[id]/index.tsx
The result from the production build
With the dev server it works fine:
System Info
Additional Information