-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
feat: add SSR adaptor for cloudflare pages functions #3600
Conversation
🦋 Changeset detectedLatest commit: 699382c The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
5ae8ea4
to
e94044c
Compare
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.
Hey @nrgnrg! This is great work, just one note on the change to serializeProps
. Probably not necessary anymore. 😉
e94044c
to
699382c
Compare
@natemoo-re I've removed the |
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 great, thanks for the PR!
Changes
Notes
There is 1 change within the Astro server runtime which was necessary to make this work,'serialize-javascript'
generates a random number at the top level of the module, this is a pattern which is forbidden by Cloudflare workers. The error given is this:The fix is dynamically importing the dependency so that it generates the random number at call time, even when inlined in the build.Testing
Docs