Skip to content
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: store platformConfig in globalThis #874

Merged
merged 2 commits into from
Sep 12, 2024
Merged

fix: store platformConfig in globalThis #874

merged 2 commits into from
Sep 12, 2024

Conversation

dai-shi
Copy link
Owner

@dai-shi dai-shi commented Sep 12, 2024

close #871

I would like to avoid depending on globalThis, but this is an easy fix for now.

Copy link

vercel bot commented Sep 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
waku ✅ Ready (Inspect) Visit Preview Sep 12, 2024 8:54am

Copy link

codesandbox-ci bot commented Sep 12, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@dai-shi dai-shi merged commit b83cb10 into main Sep 12, 2024
28 checks passed
@dai-shi dai-shi deleted the fix/issue-871 branch September 12, 2024 09:36
dai-shi pushed a commit that referenced this pull request Sep 18, 2024
This (along with the previous #874) resolves the issue in #871. The
build config was being written to the wrong location for cloudflare
pages This PR exports a function from the build module that appends the
build config to the given entries file location. It uses a new unstable
build config state variable (`unstable_buildConfigSave`) to track
whether or not the build config has be saved to the entries file. This
allows the cloudflare deploy plugin to write the build config into the
worker function directory instead of the root.

We could merge #879 and then I can edit the base branch to main and
continue with this PR. Or however you want to handle it. Thank you!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dynamic routes on Cloudflare fail trying to import node:fs/promises
1 participant