-
-
Notifications
You must be signed in to change notification settings - Fork 352
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
onPrerenderStart
hook not called
#1702
Comments
@FlorianCassayre Indeed, something's wrong. Let me dig into this. |
Fix pre-released as Btw. in case your company is up for it, Vike is looking for sponsors — it makes a massive difference! |
Excellent, thanks for the quick fix. I'll patch my dependencies. |
We're not using Vike at work (yet), however I'm happy to sponsor the project as an individual. |
Thank you, it's much appreciated 💚 |
This fixed a problem I was having (thank you!) but causes npm errors because I use edit: you know what, turns out we didn't really need vike-react. So I removed it; nevermind. |
I use |
I am in the process of migrating from plain
vike
+react
tovike-react
, in order to remove some of the boilerplate. My app supports prerendering (SSG) and i18n. For that purpose I was using theonPrerenderStart
hook, which was working fine.However it seems that after integrating
vike-react
thisonPrerenderStart
hook stopped getting called altogether on build. I have properly configuredvike({ prerender: true })
, and even setssr: true
(even though it is apparently the default), but to no avail.Here is a reproducer which reuses the example boilerplate in vike-react/examples/minimal: https://github.com/FlorianCassayre/vike-react-onPrerenderStart
The latest commit contains the actual changes and demonstrates that when running
npm run build
the hook is not called (expected behavior would be to throw an error).It seems on the other hand that
onBeforePrerenderStart
works.The text was updated successfully, but these errors were encountered: