qwik
qwik copied to clipboard
`basePathname` and static generation not works
Qwik Version
0.9.0
Operating System (or Browser)
macOS 12.5.1/ Chrome 105
Node Version (if applicable)
16.17.0
Which component is affected?
Qwik City
Expected Behaviour
I want to generate whole static files in directory which I set basePathname
Actual Behaviour
I've tried to use static generation for GitHub Pages. I set origin: 'https://{name}.github.io'
in src/entry.static.tsx
and qwikCity({basePathname: '/{repo-name}/'})
in vite.config.ts
. So then I run npm run build && npm run ssg
but no output any html file in dist dir. Just qwikCity() is works fine.
Additional Information
https://discordapp.com/channels/842438759945601056/991805589623668758/1023557072312356904
does not work for me as well :-( https://github.com/Matb85/portfolio
I'm still see this issue on 0.11.0
Thanks for the work though, keep it going 👍
Thanks for opening the issue. We'll get this fixed up, but in the meantime there were also some breaking changes to how the SSG files are built: https://github.com/BuilderIO/qwik/releases/tag/v0.12.0
hmm... I updated to [email protected], [email protected] and rewrite vite.config.ts, package.json but still stuck same probrem.
@e-jigsaw He's using the future, it's not fixed yet.
oh sorry
@adamdbradley This needs to be reopen.
I'm still getting "Failed to fetch dynamically imported module: https://jeanmeche.github.io/build/q-9201ed70.js"
The basePathname isn't used when hovering the button for example : https://jeanmeche.github.io/qwik-app/
@JeanMeche I guess you should open a new issue. This one dealt with SSG not really working at all and your problem is about hosting the website in a subfolder.