Skip to content

feat: experimental workers assets can be ignored by adding a .assetsignore file#6640

Merged
petebacondarwin merged 2 commits intomainfrom
cf-assets-ignore
Sep 11, 2024
Merged

feat: experimental workers assets can be ignored by adding a .assetsignore file#6640
petebacondarwin merged 2 commits intomainfrom
cf-assets-ignore

Conversation

@petebacondarwin
Copy link
Contributor

@petebacondarwin petebacondarwin commented Sep 4, 2024

What this PR solves / how to test

Fixes #[insert GH or internal issue number(s)].

Author has addressed the following

  • Tests
    • TODO (before merge)
    • Included
    • Not necessary because:
  • E2E Tests CI Job required? (Use "e2e" label or ask maintainer to run separately)
    • I don't know
    • Required / Maybe required
    • Not required because:
  • Changeset (Changeset guidelines)
    • TODO (before merge)
    • Included
    • Not necessary because:
  • Public documentation

@changeset-bot
Copy link

changeset-bot bot commented Sep 4, 2024

🦋 Changeset detected

Latest commit: 904218c

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

This PR includes changesets to release 2 packages
Name Type
wrangler Minor
@cloudflare/vitest-pool-workers 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

@github-actions
Copy link
Contributor

github-actions bot commented Sep 4, 2024

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/10737106861/npm-package-wrangler-6640

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

npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/prs/6640/npm-package-wrangler-6640

Or you can use npx with this latest build directly:

npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/10737106861/npm-package-wrangler-6640 dev path/to/script.js
Additional artifacts:
npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/10737106861/npm-package-create-cloudflare-6640 --no-auto-update
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/10737106861/npm-package-cloudflare-kv-asset-handler-6640
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/10737106861/npm-package-miniflare-6640
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/10737106861/npm-package-cloudflare-pages-shared-6640
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/10737106861/npm-package-cloudflare-vitest-pool-workers-6640
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/10737106861/npm-package-cloudflare-workers-editor-shared-6640
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/10737106861/npm-package-cloudflare-workers-shared-6640

Note that these links will no longer work once the GitHub Actions artifact expires.


wrangler@3.75.0 includes the following runtime dependencies:

Package Constraint Resolved
miniflare workspace:* 3.20240821.1
workerd 1.20240821.1 1.20240821.1
workerd --version 1.20240821.1 2024-08-21

Please ensure constraints are pinned, and miniflare/workerd minor versions match.

@GregBrimble
Copy link
Contributor

We've previously tried to get away from the cf shorthand. Doesn't look like .assetsignore is commonly used anyway — worth just claiming that?

@petebacondarwin
Copy link
Contributor Author

We've previously tried to get away from the cf shorthand. Doesn't look like .assetsignore is commonly used anyway — worth just claiming that?

OK. I am onboard with that. @tanushree-sharma - do you agree?

@tanushree-sharma
Copy link

Yep, sounds good to me.

@petebacondarwin petebacondarwin changed the title feat: experimental workers assets can be ignored by adding a .cfassetsignore file feat: experimental workers assets can be ignored by adding a .assetsignore file Sep 6, 2024
@petebacondarwin petebacondarwin added the e2e Run wrangler + vite-plugin e2e tests on a PR label Sep 6, 2024
@petebacondarwin petebacondarwin marked this pull request as ready for review September 6, 2024 11:20
@petebacondarwin petebacondarwin requested a review from a team as a code owner September 6, 2024 11:20
@petebacondarwin petebacondarwin merged commit 8527675 into main Sep 11, 2024
@petebacondarwin petebacondarwin deleted the cf-assets-ignore branch September 11, 2024 10:41
andyjessop added a commit that referenced this pull request Sep 13, 2024
* main:
  Add pipeline binding to wrangler.toml (#6674)
  Fix Pages duplicating hash in redirects (#6680)
  Bradley/r2 event notification get (#6652)
  feat(wrangler): Add support for placement hints (#6625)
  fix(wrangler): Validate `routes` for Workers with assets (#6621)
  chore(deps): bump the workerd-and-workers-types group across 1 directory with 2 updates (#6673)
  chore(workers-shared): Configure GitHub Actions to deploy Asset Worker (#6542)
  feat: experimental workers assets can be ignored by adding a .assetsignore file (#6640)
methanoya added a commit to methanoya/sveltekit that referenced this pull request Dec 5, 2024
teemingc added a commit to sveltejs/kit that referenced this pull request Dec 19, 2024
* .assetsignore file generation for Cloudflare deployment. It is corresponded to cloudflare/workers-sdk#6640

* move .assetsignore to files folder

* add .assetsignore file generation for adapter-cloudflare-workers

* changeset update

* move .gitignore per Ben McCann (benmccann) request

* Update .changeset/proud-taxis-admire.md

* Update .changeset/proud-taxis-admire.md

Co-authored-by: Tee Ming <chewteeming01@gmail.com>

* Revert "add .assetsignore file generation for adapter-cloudflare-workers"

This reverts commit 0e9b1fc.

* merge user's .assetsignore with the generated one

* Update proud-taxis-admire.md

remove mention of the unaffected package

* add ending newline to the generated .assetsignore

* move `.assetsignore` generation to generate_assetsignore()

* simplify the change

* cleanup unused import

* Update .changeset/proud-taxis-admire.md

---------

Co-authored-by: Timur Gamerov <methanoya@users.noreply.github.com>
Co-authored-by: Tee Ming <chewteeming01@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

e2e Run wrangler + vite-plugin e2e tests on a PR

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants