Skip to content

Commit c387764

Browse files
authored
add legacy assets flag to wrangler dev/deploy (#16072)
* add legacy assets flag to wrangler dev/deploy * change wording of assets aside
1 parent aeacb28 commit c387764

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

content/workers/wrangler/commands.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -813,9 +813,12 @@ As of Wrangler v3.2.0, `wrangler dev` is supported by any Linux distributions pr
813813
- Path to a custom certificate.
814814
- `--local-upstream` {{<type>}}string{{</type>}} {{<prop-meta>}}optional{{</prop-meta>}}
815815
- Host to act as origin in local mode, defaults to `dev.host` or route.
816-
- `--assets` {{<type>}}string{{</type>}} {{<prop-meta>}}optional{{</prop-meta>}}
816+
- `--legacy-assets` {{<type>}}string{{</type>}} {{<prop-meta>}}optional{{</prop-meta>}} {{<prop-meta>}}experimental{{</prop-meta>}}
817817
- Root folder of static assets to be served.
818-
- Use in combination with `--name` and `--latest` for basic static file hosting. For example: `wrangler dev --name personal_blog --assets dist/ --latest`.
818+
- Use in combination with `--name` and `--latest` for basic static file hosting. For example: `wrangler dev --name personal_blog --legacy-assets dist/ --latest`.
819+
- `--assets` {{<type>}}string{{</type>}} {{<prop-meta>}}optional{{</prop-meta>}} {{<prop-meta>}}experimental{{</prop-meta>}}
820+
- Root folder of static assets to be served.
821+
- {{<Aside type="warning">}}This is an experimental feature and its behavior will be changing soon. Use `--legacy-assets` instead to ensure that you get consistent behavior when this option changes.{{</Aside>}}
819822
- `--site` {{<type>}}string{{</type>}} {{<prop-meta>}}optional{{</prop-meta>}}
820823
- Root folder of static assets for Workers Sites.
821824
- `--site-include` {{<type>}}string[]{{</type>}} {{<prop-meta>}}optional{{</prop-meta>}}
@@ -887,9 +890,12 @@ None of the options for this command are required. Also, many can be set in your
887890
- Flags to use for compatibility checks.
888891
- `--latest` {{<type>}}boolean{{</type>}} {{<prop-meta>}}(default: true){{</prop-meta>}} {{<prop-meta>}}optional{{</prop-meta>}}
889892
- Use the latest version of the Workers runtime.
890-
- `--assets` {{<type>}}string{{</type>}} {{<prop-meta>}}optional{{</prop-meta>}}
893+
- `--legacy-assets` {{<type>}}string{{</type>}} {{<prop-meta>}}optional{{</prop-meta>}} {{<prop-meta>}}experimental{{</prop-meta>}}
894+
- Root folder of static assets to be served.
895+
- Use in combination with `--name` and `--latest` for basic static file hosting. For example: `wrangler dev --name personal_blog --legacy-assets dist/ --latest`.
896+
- `--assets` {{<type>}}string{{</type>}} {{<prop-meta>}}optional{{</prop-meta>}} {{<prop-meta>}}experimental{{</prop-meta>}}
891897
- Root folder of static assets to be served.
892-
- Use in combination with `--name` and `--latest` for basic static file hosting. For example: `npx wrangler deploy --name personal_blog --assets dist/ --latest`.
898+
- {{<Aside type="warning">}}This is an experimental feature and its behavior will be changing soon. Use `--legacy-assets` instead to ensure that you get consistent behavior when this option changes.{{</Aside>}}
893899
- `--site` {{<type>}}string{{</type>}} {{<prop-meta>}}optional{{</prop-meta>}}
894900
- Root folder of static assets for Workers Sites.
895901
- `--site-include` {{<type>}}string[]{{</type>}} {{<prop-meta>}}optional{{</prop-meta>}}

0 commit comments

Comments
 (0)