Skip to content

Commit

Permalink
templates(cloudflare-workers): prevent building twice
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDeBoey committed Aug 10, 2023
1 parent 6af8f3d commit 4b78c7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion templates/cloudflare-workers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "module",
"scripts": {
"build": "remix build",
"deploy": "remix build && wrangler deploy",
"deploy": "wrangler deploy",
"dev": "remix dev --manual -c \"npm start\"",
"start": "wrangler dev ./build/index.js",
"typecheck": "tsc"
Expand Down
3 changes: 3 additions & 0 deletions templates/cloudflare-workers/wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ compatibility_date = "2023-04-20"

[site]
bucket = "./public"

[build]
command = "npm run build"

0 comments on commit 4b78c7b

Please sign in to comment.