-
Notifications
You must be signed in to change notification settings - Fork 777
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 assets + custom build = infinite loop #6881
Conversation
🦋 Changeset detectedLatest commit: 451510c 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 |
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/11161082317/npm-package-wrangler-6881 You can reference the automatically updated head of this PR with: npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/prs/6881/npm-package-wrangler-6881 Or you can use npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/11161082317/npm-package-wrangler-6881 dev path/to/script.js Additional artifacts:npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/11161082317/npm-package-create-cloudflare-6881 --no-auto-update npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/11161082317/npm-package-cloudflare-kv-asset-handler-6881 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/11161082317/npm-package-miniflare-6881 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/11161082317/npm-package-cloudflare-pages-shared-6881 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/11161082317/npm-package-cloudflare-vitest-pool-workers-6881 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/11161082317/npm-package-cloudflare-workers-editor-shared-6881 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/11161082317/npm-package-cloudflare-workers-shared-6881 Note that these links will no longer work once the GitHub Actions artifact expires.
Please ensure constraints are pinned, and |
c5d1304
to
fad78de
Compare
I tried this out... I updated my test app to point to this PR build: https://github.com/zwily/remix-wrangler-much-restarting (Note that I did have to set Now when I run |
I think you're looking for the |
fad78de
to
689fc4f
Compare
689fc4f
to
f36c87a
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.
thanks for fixing this!
Can't get the Windows tests to begin and want this fix in today's release which will run them anyway Going to skip the last job and merge anyway |
What this PR solves / how to test
Fixes #6876
Previously, if a
build.custom
command output files into theassets.directory
, it caused the command to run again in an infinite loop.This was caused by the assets watcher in the ConfigController to trigger a configUpdate event – with the intention of triggering a runtime reload – which caused the BundleController to trigger a full build.
The assets watcher has now been moved to the BundleController and triggers a bundleCompleted event instead – with the intention of triggering a runtime reload where Miniflare itself reads the new assets from the filesystem.
Author has addressed the following