Skip to content

Commit

Permalink
add wrangler toml
Browse files Browse the repository at this point in the history
  • Loading branch information
gvkhna committed May 23, 2024
1 parent eb7a71b commit a461451
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
run: |
pnpm run proto
pnpm astro build
pnpm wrangler d1 migrations apply warpdive-db --remote
pnpm wrangler d1 migrations apply warpdive-db --remote --env production
working-directory: ${{ env.BUILD_PATH }}
- name: Publish
uses: cloudflare/pages-action@1
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ tmp/*
!.env.example

wrangler*.toml
!wrangler.toml
.wrangler
*.vars

Expand Down
38 changes: 38 additions & 0 deletions wrangler.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Generated by Wrangler on Wed May 22 2024 16:21:50 GMT-0700 (Pacific Daylight Time)
name = "warpdive"
pages_build_output_dir = "dist"
compatibility_date = "2024-05-19"

[[d1_databases]]
binding = "DB"
database_name = "warpdive-dev-db"
database_id = "3057d479-df8e-4c8e-ab90-36e9f06212da"
migrations_dir = "./src/db/migrations"
preview_database_id = "DB"

[[r2_buckets]]
binding = "STORAGE"
bucket_name = "warpdive-dev-r2"

# R2 Bucket binding for dev environment
# Local development configuration
[dev]
ip = "127.0.0.1"
port = 8787
local_protocol = "http"

[env.production]
compatibility_date = "2024-05-19"

[[env.production.d1_databases]]
database_id = "12089d9c-57f0-40ff-816c-49e0d84149cd"
binding = "DB"
database_name = "warpdive-db"

[[env.production.r2_buckets]]
binding = "STORAGE"
bucket_name = "warpdive-r2"

[env.production.vars]
PUBLIC_WEB_HOSTNAME = "https://www.warpdive.xyz"
PUBLIC_GITHUB_CLIENT_ID = "Ov23liQLUvkouKzT9J6M"

0 comments on commit a461451

Please sign in to comment.