forked from Open-Legal-Products/mike
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwrangler.jsonc
More file actions
45 lines (45 loc) · 1.58 KB
/
Copy pathwrangler.jsonc
File metadata and controls
45 lines (45 loc) · 1.58 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
/**
* Cloudflare Workers config for the OpenNext deployment of Mike's Next.js app.
* Consumed by `npm run deploy` (frontend/package.json) which runs
* opennextjs-cloudflare build && opennextjs-cloudflare deploy
*
* Set secrets after first deploy:
* wrangler secret put NEXT_PUBLIC_SUPABASE_URL
* wrangler secret put NEXT_PUBLIC_SUPABASE_PUBLISHABLE_DEFAULT_KEY
* wrangler secret put NEXT_PUBLIC_API_BASE_URL
* wrangler secret put R2_ENDPOINT_URL
* wrangler secret put R2_ACCESS_KEY_ID
* wrangler secret put R2_SECRET_ACCESS_KEY
* wrangler secret put R2_BUCKET_NAME
*
* NEXT_PUBLIC_* values are inlined at build time, so they must also be present
* as plain env vars (or `vars`) during `opennextjs-cloudflare build`.
*
* Named environments give us isolated Workers per deploy target:
* npm run deploy:staging -> worker "mike-frontend-staging"
* npm run deploy:production -> worker "mike-frontend-production"
* Top-level config (main, assets, compatibility_*) is inherited by both.
* The bare top-level `name` is only used by a plain `deploy` with no --env.
*/
{
"$schema": "node_modules/wrangler/config-schema.json",
"name": "mike-frontend",
"main": ".open-next/worker.js",
"compatibility_date": "2025-03-01",
"compatibility_flags": ["nodejs_compat", "global_fetch_strictly_public"],
"assets": {
"binding": "ASSETS",
"directory": ".open-next/assets"
},
"observability": {
"enabled": true
},
"env": {
"staging": {
"name": "mike-frontend-staging"
},
"production": {
"name": "mike-frontend-production"
}
}
}