Skip to content

Commit 6041aad

Browse files
bobthemightyclaude
andcommitted
Add wrangler.jsonc so the assets deploy finds dist/
The Python build now succeeds on Cloudflare, but the deploy step (`wrangler versions upload`) failed with no entry point. Declare an assets-only Worker pointing at ./dist so the deploy uploads the built site. Also switch the local `make preview` to `wrangler dev` to match. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 1ebf32f commit 6041aad

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ serve: build
77
cd dist && python -m http.server 8899
88

99
preview: build
10-
npx wrangler pages dev dist
10+
npx wrangler dev
1111

1212
watch-build:
1313
ls **/*.md **/*.html **/*.xml *.py | entr ./generate-html.py

wrangler.jsonc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "cosmicpython",
3+
"compatibility_date": "2026-06-14",
4+
"assets": {
5+
"directory": "./dist"
6+
}
7+
}

0 commit comments

Comments
 (0)