Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ jobs:
DB_ID: ${{ secrets.CLOUDFLARE_D1_DATABASE_ID }}
run: |
# Use jq to update the database_id inside the d1_databases array
jq '.env.prod.d1_databases[0].database_id = env.DB_ID' > wrangler.json.tmp
jq --arg new_val "${DB_ID}" '.env.prod.d1_databases[0].database_id = $new_val' wrangler.json > wrangler.json.tmp

# Replace the old file with the newly updated one
mv wrangler.json.tmp wrangler.json

Expand Down
4 changes: 2 additions & 2 deletions wrangler.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"secrets": {
"required": [
"DEV_BYPASS_SECRET"
],
]
}
},
"prod": {
Expand All @@ -47,7 +47,7 @@
"GITHUB_WEBHOOK_SECRET",
"CF_ACCESS_AUD",
"CF_ACCESS_TEAM_DOMAIN"
],
]
}
}
}
Expand Down
Loading