-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwrangler.toml
More file actions
49 lines (39 loc) · 1.05 KB
/
wrangler.toml
File metadata and controls
49 lines (39 loc) · 1.05 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Cloudflare Workers & Pages Configuration
name = "story-linc"
main = "src/worker.ts"
compatibility_date = "2024-01-01"
compatibility_flags = ["nodejs_compat"]
# Environment variables
[env.production.vars]
ENVIRONMENT = "production"
[env.preview.vars]
ENVIRONMENT = "preview"
# KV Namespaces for data storage
[[kv_namespaces]]
binding = "STORIES_KV"
id = "stories_kv_namespace"
preview_id = "stories_kv_preview"
[[kv_namespaces]]
binding = "ANALYTICS_KV"
id = "analytics_kv_namespace"
preview_id = "analytics_kv_preview"
# Durable Objects for real-time features (future)
[[durable_objects.bindings]]
name = "COLLABORATION"
class_name = "CollaborationDurableObject"
# R2 Storage for file uploads (future)
[[r2_buckets]]
binding = "STORY_ASSETS"
bucket_name = "story-weaver-assets"
preview_bucket_name = "story-weaver-assets-preview"
# Analytics Engine
[[analytics_engine_datasets]]
binding = "ANALYTICS"
# Build configuration
[build]
command = "npm run build"
publish = "dist"
# Pages configuration for frontend
[site]
bucket = "dist"
entry-point = "workers-site"