Skip to content

Commit b2c6e76

Browse files
committed
Use only pages deploy
1 parent 7f772f7 commit b2c6e76

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

.github/workflows/prod-deploy.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,7 @@ jobs:
4545
run: pnpm run build
4646

4747
- name: Deploy worker
48-
uses: cloudflare/wrangler-action@v3
49-
with:
50-
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
48+
run: pnpm exec wrangler deploy
5149

5250
- name: Deploy pages
53-
uses: cloudflare/wrangler-action@v3
54-
with:
55-
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
56-
command: pages deploy ./build/client --project-name=math-rock-stack
51+
run: pnpm exec wrangler pages deploy

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
"db:migrate:apply:local": "dotenvx run -- sh scripts/db-migrate.sh",
1515
"db:migrate:apply:prod": "dotenvx run -- sh scripts/db-migrate-prod.sh",
1616
"db:studio:local": "LOCAL_DB_PATH=$(find .wrangler/state/v3/d1/miniflare-D1DatabaseObject -type f -name '*.sqlite' -print -quit) drizzle-kit studio",
17-
"db:sync": "dotenvx run -- sh scripts/db-sync.sh",
18-
"wrangler": "wrangler"
17+
"db:sync": "dotenvx run -- sh scripts/db-sync.sh"
1918
},
2019
"keywords": [],
2120
"author": "",

wrangler.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#:schema node_modules/wrangler/config-schema.json
22
name = "math-rock-stack"
33
compatibility_date = "2024-05-02"
4+
main="./build/server/index.js"
45
pages_build_output_dir = "./build/client"
56

67
[vars]

0 commit comments

Comments
 (0)