forked from allthingslinux/allthingslinux
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwrangler.local.jsonc
More file actions
54 lines (46 loc) · 1.7 KB
/
wrangler.local.jsonc
File metadata and controls
54 lines (46 loc) · 1.7 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
50
51
52
53
54
// wrangler.local.jsonc - Configuration for Local Development (`wrangler dev`)
{
// --- Configuration for `wrangler dev` ---
"main": ".open-next/worker.js",
"name": "allthingslinux-local", // Name for local dev
"compatibility_date": "2025-04-02",
"compatibility_flags": ["nodejs_compat"],
"find_additional_modules": true,
"preserve_file_names": true,
"minify": false, // Typically false for local dev
"assets": {
"binding": "ASSETS",
"directory": ".open-next/assets",
},
"workers_dev": true, // Enable *.workers.dev route if needed for local testing (though `wrangler dev` often handles this)
"observability": {
"enabled": true,
"logs": {
"invocation_logs": true,
},
},
// Service binding for worker self-reference (use development service, consistent with preview)
"services": [
{
"binding": "WORKER_SELF_REFERENCE",
"service": "allthingslinux-development", // Use the development service name
},
],
// R2 Bucket for Next.js incremental cache (using dev/preview name)
"r2_buckets": [
{
"binding": "NEXT_INC_CACHE_R2_BUCKET",
"bucket_name": "allthingslinux-cache-development", // Use the dev bucket name
},
],
// Environment variables for local development (loaded from `.dev.vars` by `wrangler dev`)
"vars": {
// Public vars (available to browser via process.env in Next.js)
"NEXT_PUBLIC_URL": "http://localhost:8788",
"NEXT_PUBLIC_API_URL": "http://localhost:8788/api",
"NEXT_PUBLIC_GITHUB_REPO_OWNER": "allthingslinux",
"NEXT_PUBLIC_GITHUB_REPO_NAME": "applications",
"NODE_ENV": "development",
},
}