-
Notifications
You must be signed in to change notification settings - Fork 564
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
[miniflare] fix: remove __STATIC_CONTENT_MANIFEST
from module worker env
#4505
Conversation
🦋 Changeset detectedLatest commit: fc8043a The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 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 |
__STATIC_CONTENT_MANIFEST
from module worker env
__STATIC_CONTENT_MANIFEST
from module worker env
A wrangler prerelease is available for testing. You can install this latest build in your project with: npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/7004078380/npm-package-wrangler-4505 You can reference the automatically updated head of this PR with: npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/prs/7004078380/npm-package-wrangler-4505 Or you can use npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/7004078380/npm-package-wrangler-4505 dev path/to/script.js Additional artifacts:npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/7004078380/npm-package-miniflare-4505 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/7004078380/npm-package-cloudflare-pages-shared-4505 Note that these links will no longer work once the GitHub Actions artifact expires.
| Please ensure constraints are pinned, and |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #4505 +/- ##
==========================================
+ Coverage 75.44% 75.47% +0.03%
==========================================
Files 240 240
Lines 12851 12851
Branches 3309 3309
==========================================
+ Hits 9695 9699 +4
+ Misses 3156 3152 -4 |
eb64010
to
fc8043a
Compare
Fixes #4374.
What this PR solves / how to test:
When using Workers Sites with a module worker, the asset manifest must be imported from the
__STATIC_CONTENT_MANIFEST
virtual module. Miniflare provided this module, but also erroneously added__STATIC_CONTENT_MANIFEST
to theenv
object too. Whilst this didn't break anything locally, it could cause users to develop Workers that ran locally, but not when deployed. This change ensuresenv
doesn't contain__STATIC_CONTENT_MANIFEST
.To test this, run
wrangler dev
infixtures/sites-app
and verify__STATIC_CONTENT_MANIFEST
doesn't appear in theenv
object.Author has addressed the following:
Note for PR author:
We want to celebrate and highlight awesome PR review! If you think this PR received a particularly high-caliber review, please assign it the label
highlight pr review
so future reviewers can take inspiration and learn from it.