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: delete unused [site] assets #667

Merged
merged 1 commit into from
Mar 22, 2022
Merged

Conversation

threepointone
Copy link
Contributor

We discovered critical issues with the way we expire unused assets with [site] (#666, cloudflare/wrangler-legacy#2224), that we're going back to the legacy manner of handling unused assets, i.e- deleting unused assets.

Fixes #666

@github-actions
Copy link
Contributor

github-actions bot commented Mar 22, 2022

A wrangler prerelease is available for testing. You can install this latest build in your project with:

npm install --save-dev https://prerelease-registry.developers.workers.dev/runs/2022271297/npm-package-wrangler-667

You can reference the automatically updated head of this PR with:

npm install --save-dev https://prerelease-registry.developers.workers.dev/prs/667/npm-package-wrangler-667

Or you can use npx with this latest build directly:

npx https://prerelease-registry.developers.workers.dev/runs/2022271297/npm-package-wrangler-667 dev path/to/script.js

@changeset-bot
Copy link

changeset-bot bot commented Mar 22, 2022

🦋 Changeset detected

Latest commit: 641de33

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
wrangler Patch

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

@petebacondarwin
Copy link
Contributor

It might be nice to add logging (in the future) to show what files are being upload, which are skipped and which are being deleted...

@threepointone
Copy link
Contributor Author

we already log upload/skipping, I'll add a line for deleting too

@threepointone threepointone force-pushed the delete-unused-assets branch 2 times, most recently from 88d2739 to 4f73251 Compare March 22, 2022 12:13
@petebacondarwin
Copy link
Contributor

Sorry my PR caused conflicts here @threepointone - let me know if you don't have time and I will do the rebase.

@threepointone
Copy link
Contributor Author

no problemo, just one line, I got this

We discovered critical issues with the way we expire unused assets with `[site]` (see #666, cloudflare/wrangler-legacy#2224), that we're going back to the legacy manner of handling unused assets, i.e- deleting unused assets.

Fixes #666
@petebacondarwin petebacondarwin merged commit e29a241 into main Mar 22, 2022
@petebacondarwin petebacondarwin deleted the delete-unused-assets branch March 22, 2022 12:23
@github-actions github-actions bot mentioned this pull request Mar 22, 2022
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.

🐛 BUG: bulk put: could not base64 decode value for key
2 participants