Skip to content

Commit f6afe01

Browse files
authored
fix: deploy worker with production environment (#104)
1 parent b922073 commit f6afe01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"build:prod": "NODE_ENV=production tsc && vite build",
1515
"build:dev": "NODE_ENV=development tsc && vite build",
1616
"build:sync": "wrangler deploy --dry-run",
17-
"deploy:worker": "wrangler deploy",
17+
"deploy:worker": "wrangler deploy --env production",
1818
"deploy:web": "pnpm build && wrangler pages deploy dist --project-name anode",
1919
"deploy": "pnpm deploy:web && pnpm deploy:worker",
2020
"deploy:production": "test -f .env.production || (echo 'Error: .env.production file is required for production deployment' && exit 1) && pnpm build:prod && wrangler pages deploy dist --project-name anode --commit-dirty=true",

0 commit comments

Comments
 (0)