-
Notifications
You must be signed in to change notification settings - Fork 145
Fix prerendered dynamic ISR functions change in Vercel CLI #834
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
Fix prerendered dynamic ISR functions change in Vercel CLI #834
Conversation
🦋 Changeset detectedLatest commit: 0977ef3 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
🧪 Prereleases are available for testing 🧪 @cloudflare/next-on-pagesYou can install this latest build in your project with: npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/next-on-pages/runs/10039763616/npm-package-next-on-pages-834 @cloudflare/eslint-plugin-next-on-pagesYou can install this latest build in your project with: npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/next-on-pages/runs/10039763616/npm-package-eslint-plugin-next-on-pages-834 |
packages/next-on-pages/src/buildApplication/processVercelFunctions/invalidFunctions.ts
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, thanks a lot for the fix @james-elicx 🙏
I've just left a few minor comments
packages/next-on-pages/src/buildApplication/processVercelFunctions/invalidFunctions.ts
Show resolved
Hide resolved
Hi @dario-piotrowicz and @james-elicx. Thank you so much for your responsiveness in finding this quick fix. I'm currently stuck with this problem, so to see it progressing at this rate is great! |
Hi @valentinbdv 🙂, no problem (well, James did all the work here! :P) I'm sorry you've been blocked, if you want this should already be available in Or in any case I will cut a next-on-pages stable release today at some point, so by tomorrow |
Hi @dario-piotrowicz, I can confirm it does work now using |
@valentinbdv nice! 😄 anyways I've also just done a stable release so feel free to go back to |
Hi @dario-piotrowicz, it seems that |
Oh sorry, I forgot to upgrade |
HI @dario-piotrowicz, I tried and still can't seem to get it to work? |
@JoE11-y can you make sure that you're using the latest ( To be sure you can check the version that gets printed when you run the build command: If you're indeed using the latest next-on-pages version and it still doesn't work for you, could you please open a new issue with a minimal reproduction? (and I'll look into it as soon as I can) 🙏 |
new vercel cli update no longer generates prerender configs for dynamic ISR functions when it generates valid children for the route.
this pr does the following:
fixes #833
source path in prerender config for reference: