Skip to content

Commit 4c8f801

Browse files
committed
adding changelog for Wrangler interactive improvement for Assets deployment
1 parent b491295 commit 4c8f801

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
---
2+
title: Interactive deployment flow for static assets in Wrangler
3+
description: Wrangler now guides you through deploying static assets with interactive prompts and automatic configuration generation when no wrangler.jsonc file exists.
4+
products:
5+
- workers
6+
date: 2025-09-09
7+
---
8+
9+
Deploying static assets to Workers is now significantly easier. When you run `wrangler deploy [directory]` or `wrangler deploy --assets [directory]` without an existing configuration file, Wrangler will now guide you through the deployment process with interactive prompts.
10+
11+
## What's new
12+
13+
**Interactive prompts for missing configuration:**
14+
- Wrangler detects when you're trying to deploy a directory of static assets
15+
- Prompts you to confirm the deployment type
16+
- Asks for a project name (with smart defaults)
17+
- Automatically sets the compatibility date to today
18+
19+
**Automatic configuration generation:**
20+
- Creates a `wrangler.jsonc` file with your deployment settings
21+
- Stores your choices for future deployments
22+
- Eliminates the need to remember complex command-line flags
23+
24+
## Example workflow
25+
26+
```bash
27+
# Deploy your built static site
28+
wrangler deploy dist
29+
30+
# Wrangler will prompt:
31+
✔ It looks like you are trying to deploy a directory of static assets only. Is this correct? … yes
32+
✔ What do you want to name your project? … my-astro-site
33+
34+
# Automatically generates wrangler.jsonc:
35+
{
36+
"name": "my-astro-site",
37+
"compatibility_date": "2025-09-09",
38+
"assets": {
39+
"directory": "dist"
40+
}
41+
}
42+
43+
# Future deployments are now simplified:
44+
wrangler deploy
45+
```
46+
47+
## Before and after
48+
49+
**Before:** Required remembering multiple flags and parameters
50+
```bash
51+
wrangler deploy --assets ./dist --compatibility-date 2025-09-09 --name my-project
52+
```
53+
54+
**After:** Simple directory deployment with guided setup
55+
```bash
56+
wrangler deploy dist
57+
# Interactive prompts handle the rest as shown in the example flow above
58+
```
59+
60+
## Requirements
61+
62+
- **Wrangler 4.24.4 or higher** is required for this functionality
63+

0 commit comments

Comments
 (0)