qwik icon indicating copy to clipboard operation
qwik copied to clipboard

`basePathname` and static generation not works

Open e-jigsaw opened this issue 2 years ago • 3 comments

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

e-jigsaw avatar Sep 27 '22 14:09 e-jigsaw

does not work for me as well :-( https://github.com/Matb85/portfolio

Matb85 avatar Oct 07 '22 10:10 Matb85

I'm still see this issue on 0.11.0

Thanks for the work though, keep it going 👍

JeanMeche avatar Oct 28 '22 08:10 JeanMeche

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

adamdbradley avatar Nov 02 '22 15:11 adamdbradley

hmm... I updated to [email protected], [email protected] and rewrite vite.config.ts, package.json but still stuck same probrem.

e-jigsaw avatar Nov 03 '22 07:11 e-jigsaw

@e-jigsaw He's using the future, it's not fixed yet.

JeanMeche avatar Nov 03 '22 08:11 JeanMeche

oh sorry

e-jigsaw avatar Nov 03 '22 08:11 e-jigsaw

@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 avatar Nov 12 '22 12:11 JeanMeche

@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.

7underlines avatar Dec 06 '22 20:12 7underlines