You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: --assets / config.assets to serve a folder of static assets
This adds support for defining `assets` in `wrangler.toml`. You can configure it with a string path, or a `{bucket, include, exclude}` object (much like `[site]`). This also renames the `--experimental-public` arg as `--assets` (and adds `--assets-include and `--assets-exclude` for parity with Sites.
Via #1162
feat: `--assets` / `config.assets` to serve a folder of static assets
6
+
7
+
This adds support for defining `assets` in `wrangler.toml`. You can configure it with a string path, or a `{bucket, include, exclude}` object (much like `[site]`). This also renames the `--experimental-public` arg as `--assets` (and adds `--assets-include and `--assets-exclude` for parity with Sites.
8
+
9
+
Via https://github.com/cloudflare/wrangler2/issues/1162
--host Host to forward requests to, defaults to the zone of project [string]
841
841
--local-protocol Protocol to listen to requests on, defaults to http. [choices: \\"http\\", \\"https\\"]
842
-
--experimental-public Static assets to be served [string]
842
+
--assets Static assets to be served [string]
843
+
--assets-include Array of .gitignore-style patterns that match file or directory names from the assets directory. Only matched items will be uploaded. [array]
844
+
--assets-exclude Array of .gitignore-style patterns that match file or directory names from the assets directory. Matched items will not be uploaded. [array]
843
845
--site Root folder of static assets for Workers Sites [string]
844
846
--site-include Array of .gitignore-style patterns that match file or directory names from the sites directory. Only matched items will be uploaded. [array]
845
847
--site-exclude Array of .gitignore-style patterns that match file or directory names from the sites directory. Matched items will not be uploaded. [array]
0 commit comments