mirror of
https://github.com/xtr-dev/rondevu-server.git
synced 2025-12-10 02:43:24 +00:00
Include wrangler.toml in repository for CI/CD deployments
- Removed wrangler.toml from .gitignore - Added wrangler.toml to repo (safe - no secrets) - Database ID is not sensitive, protected by Cloudflare auth - Fixes CI/CD deployment failures
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -11,4 +11,3 @@ data/
|
||||
.wrangler/
|
||||
.dev.vars
|
||||
wrangler.toml.backup
|
||||
wrangler.toml
|
||||
|
||||
35
wrangler.toml
Normal file
35
wrangler.toml
Normal file
@@ -0,0 +1,35 @@
|
||||
name = "rondevu"
|
||||
main = "src/worker.ts"
|
||||
compatibility_date = "2024-01-01"
|
||||
|
||||
# D1 Database binding
|
||||
[[d1_databases]]
|
||||
binding = "DB"
|
||||
database_name = "rondevu-sessions"
|
||||
database_id = "b94e3f71-816d-455b-a89d-927fa49532d0"
|
||||
|
||||
# Environment variables
|
||||
[vars]
|
||||
SESSION_TIMEOUT = "300000" # 5 minutes in milliseconds
|
||||
CORS_ORIGINS = "*" # Comma-separated list of allowed origins
|
||||
|
||||
# Build configuration
|
||||
[build]
|
||||
command = ""
|
||||
|
||||
# For local development:
|
||||
# Run: npx wrangler dev
|
||||
# The local D1 database will be created automatically
|
||||
|
||||
# For production deployment:
|
||||
# 1. Create D1 database: npx wrangler d1 create rondevu-sessions
|
||||
# 2. Update the 'database_id' field above with the returned ID
|
||||
# 3. Initialize schema: npx wrangler d1 execute rondevu-sessions --remote --file=./migrations/schema.sql
|
||||
# 4. Deploy: npx wrangler deploy
|
||||
|
||||
[observability]
|
||||
[observability.logs]
|
||||
enabled = false
|
||||
head_sampling_rate = 1
|
||||
invocation_logs = true
|
||||
persist = true
|
||||
Reference in New Issue
Block a user