-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
feat: use Workers Static Assets #13427
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
Closed
astralhpi
wants to merge
32
commits into
sveltejs:main
from
astralhpi:update-cloudflare-worker-assets-handling
Closed
Changes from 28 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
30d1f46
feat: use the new Workers Static Assets feature from Cloudflare
petebacondarwin 2ae3029
Merge branch 'main' into pr/petebacondarwin/13072
teemingc a294804
Merge branch 'main' into pr/petebacondarwin/13072
teemingc b667ac7
upgrade workers types
teemingc 8a0cb79
docs: apply review feedback
astralhpi 65bc106
refactor: fix naming to match convention
astralhpi a824faf
docs: simplify CHANGELOG for Workers Assets migration
astralhpi 094cc0f
docs: add migration guide for Workers Static Assets
astralhpi e81980e
Merge branch 'main' into update-cloudflare-worker-assets-handling
astralhpi 7943188
fix: lock file
astralhpi 59495bb
docs: fix mistake
astralhpi b278361
docs: update Wrangler version requirement to v3.87.0+
astralhpi 60d0c2b
Merge branch 'main' into update-cloudflare-worker-assets-handling
astralhpi f5f7445
Merge branch 'main' into pr/astralhpi/13427
teemingc 6838afa
cleanup and parity with cloudflare pages adapter
teemingc 13128a9
move comparisons to cloudflare workers page
teemingc 4d952a3
changesets
teemingc cb73dd8
fix lint
teemingc ccb0242
serve immutable assets from worker with cache control
teemingc 071f62f
changesets
teemingc 5bd2e39
add static headers and redirects
teemingc c13390a
Merge branch 'main' into pr/astralhpi/13427
teemingc 578638c
Merge branch 'main' into pr/astralhpi/13427
teemingc 94b7b73
add support for _headers and _redirects
teemingc 4dde235
Merge branch 'main' into pr/astralhpi/13427
teemingc 909c2e7
specify value of assets.binding config
teemingc 2b08bd3
add migration example
teemingc 906c110
error if site key is in wrangler config
teemingc 26fbbbf
revert removing x-robots-tag: noindex from headers
teemingc 68a214a
copy to _worker.js file instead of dir
teemingc fefc761
Merge branch 'main' into pr/astralhpi/13427
teemingc e7f3bf8
format
teemingc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@sveltejs/adapter-cloudflare-workers': major | ||
--- | ||
|
||
feat: remove esbuild step |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@sveltejs/adapter-cloudflare-workers': patch | ||
'@sveltejs/adapter-cloudflare': patch | ||
--- | ||
|
||
fix: remove `x-robots-tag: noindex` header for `_app/*` files | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@sveltejs/adapter-cloudflare': patch | ||
--- | ||
|
||
fix: change `esbuild` to a dev dependency |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@sveltejs/adapter-cloudflare': patch | ||
--- | ||
|
||
fix: serve files from `_app/*` from the worker if the `_app/*` route was not excluded |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@sveltejs/adapter-cloudflare-workers': major | ||
--- | ||
|
||
feat: use Workers Static Assets instead of Workers Sites |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@sveltejs/adapter-cloudflare-workers': minor | ||
--- | ||
|
||
feat: optimize cache usage with `worktop` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
.DS_Store | ||
node_modules | ||
/files |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
import { CacheStorage, IncomingRequestCfProperties } from '@cloudflare/workers-types'; | ||
import { CacheStorage, CfProperties } from '@cloudflare/workers-types'; | ||
|
||
declare global { | ||
namespace App { | ||
export interface Platform { | ||
env: unknown; | ||
context: { | ||
waitUntil(promise: Promise<any>): void; | ||
}; | ||
caches: CacheStorage; | ||
cf?: IncomingRequestCfProperties; | ||
cf?: CfProperties; | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.