Skip to content

Commit 25a2769

Browse files
committed
Update package scripts and wrangler configuration for deployment
1 parent 93ede08 commit 25a2769

3 files changed

Lines changed: 19 additions & 4 deletions

File tree

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
"scripts": {
77
"dev": "astro dev",
88
"build": "astro build",
9-
"preview": "astro preview",
10-
"preview:cloudflare": "pnpm dlx wrangler pages dev ./dist",
11-
"wrangler:types": "pnpm dlx wrangler types",
9+
"preview": "pnpm build && wrangler dev",
10+
"check": "pnpm build && tsc && wrangler deploy --dry-run",
11+
"deploy": "astro build && wrangler deploy",
12+
"types": "wrangler types",
1213
"format": "prettier . --write --ignore-unknown --cache --plugin=prettier-plugin-astro",
1314
"format:check": "prettier . --check --cache",
1415
"lint": "eslint .",
@@ -52,14 +53,15 @@
5253
"@igorkowalczyk/eslint-config": "3.0.7",
5354
"@igorkowalczyk/prettier-config": "3.0.7",
5455
"@tailwindcss/forms": "0.5.10",
56+
"@types/canvas-confetti": "1.9.0",
5557
"eslint": "9.22.0",
5658
"eslint-plugin-astro": "^1.3.1",
5759
"eslint-plugin-vue": "10.0.0",
5860
"prettier": "3.5.3",
5961
"prettier-plugin-astro": "0.14.1",
6062
"prettier-plugin-tailwindcss": "0.6.11",
6163
"typescript": "5.8.2",
62-
"@types/canvas-confetti": "1.9.0"
64+
"wrangler": "4.3.0"
6365
},
6466
"packageManager": "pnpm@10.6.4",
6567
"pnpm": {

pnpm-lock.yaml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

wrangler.jsonc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
{
2+
"name": "views",
23
"compatibility_date": "2025-03-21",
4+
"main": "./dist/_worker.js/index.js",
5+
"observability": {
6+
"enabled": true,
7+
},
8+
"assets": {
9+
"directory": "./dist",
10+
"binding": "ASSETS",
11+
},
12+
"upload_source_maps": true,
313
"kv_namespaces": [
414
{
515
"binding": "views",

0 commit comments

Comments
 (0)