-
Notifications
You must be signed in to change notification settings - Fork 742
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
40033a8
commit a74abdb
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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,41 @@ | ||
--- | ||
"@cloudflare/workers-shared": minor | ||
"wrangler": minor | ||
--- | ||
|
||
feat: Create very basic Asset Server Worker and plumb it into `wrangler dev` | ||
|
||
These changes do the ground work needed in order to add Assets support for Workers in `wrangler dev`. They introduce the following components, and the following conceptual "client pipeline": | ||
|
||
<!-- prettier-ignore-start --> | ||
| | ||
wrangler dev | ||
| workerd | ||
+------------------+---------------------+ | ||
| | | | ||
| +-----------v--------------+ | | ||
| | | | | ||
| | NOOP Entry Worker | | | ||
| | | | | ||
| +------------+-------------+ | | ||
| | | | ||
| env.ASSET_SERVER | | ||
| | | | ||
| +------------v-------------+ | | ||
| | | | | ||
| | Asset Server Worker | | | ||
| | | | | ||
| +------------+-------------+ | | ||
| | | | ||
+-------------------+--------------------+ | ||
| | ||
v | ||
"Hello world from Asset Server" | ||
|
||
<!-- prettier-ignore-end --> | ||
|
||
Based on the above architectural diagram, this body of work implements the following: | ||
|
||
- it creates a new package called `workers-shared` that hosts the `Asset Server Worker`, and the `Router Worker`in the future | ||
- it scaffolds the `Asset Server Worker` in some very basic form, with basic configuration. Further behaviour implementation will follow in a subsequent PR | ||
- it does the ground work of plumbing ASW into Miniflare |