-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathwrangler.dev.toml
More file actions
35 lines (27 loc) · 922 Bytes
/
wrangler.dev.toml
File metadata and controls
35 lines (27 loc) · 922 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Development-only Wrangler Configuration
# This config skips the frontend build for faster development
name = "r2"
main = "worker/index.ts"
compatibility_date = "2025-01-01"
compatibility_flags = ["nodejs_compat"]
# Smart Placement disabled for SPA - UI responsiveness priority
placement = { mode = "off" }
# No build command for development - frontend runs separately on Vite
# [build]
# command = "npm run build"
# cwd = "."
# Assets served by Vite dev server (localhost:5173) during development
# [assets]
# directory = "dist"
# binding = "ASSETS"
[[r2_buckets]]
binding = "R2"
bucket_name = "r2-bucket"
preview_bucket_name = "r2-bucket" # Using same bucket for dev (will be prompted to create preview if needed)
# D1 database for job history (uses local SQLite in dev mode)
[[d1_databases]]
binding = "METADATA"
database_name = "r2-manager-metadata"
database_id = "local"
[observability.logs]
enabled = true