Skip to content

Commit 355a1ee

Browse files
committed
Use cloudflare recommended layout
1 parent ae29f76 commit 355a1ee

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

.github/workflows/workflow.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,10 @@ jobs:
4646
npm run build
4747
working-directory: .
4848

49-
- name: Verify Wrangler Config
50-
run: cat wrangler.toml
51-
52-
- name: Add Wrangler Config to Build
53-
run: cp wrangler.toml ./build
54-
5549
- name: Deploy to Cloudflare Pages
5650
uses: cloudflare/wrangler-action@v3
5751
with:
5852
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
5953
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
60-
command: pages deploy ./build --project-name=howoldaremycats
54+
command: pages deploy . --project-name=howoldaremycats
6155
gitHubToken: ${{ secrets.GITHUB_TOKEN }}

wrangler.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
[[r2_buckets]]
22
binding = "MEDIA"
3-
bucket_name = "howoldaremycats-videos"
3+
bucket_name = "howoldaremycats-videos"
4+
5+
[[pages_build_output_dir]]
6+
path = "./build"

0 commit comments

Comments
 (0)