-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathwrangler.jsonc
More file actions
36 lines (36 loc) · 1.05 KB
/
Copy pathwrangler.jsonc
File metadata and controls
36 lines (36 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
/**
* Cloudflare Workers configuration for Nuxt (cloudflare_module preset).
*
* - `main` / `assets.directory` は Nuxt のビルド成果物 (.output) を指す
* - `nodejs_compat` フラグは @nuxt/content など Node API 依存モジュールに必須
* - D1 binding は `pnpm wrangler d1 create <name>` で作成し、`database_id` を埋める
*
* Docs: https://developers.cloudflare.com/workers/wrangler/configuration/
*/
{
"$schema": "node_modules/wrangler/config-schema.json",
"name": "frontend-phpcon-do-website",
"main": "./.output/server/index.mjs",
"compatibility_date": "2024-09-19",
"compatibility_flags": ["nodejs_compat"],
"assets": {
"binding": "ASSETS",
"directory": "./.output/public/",
},
"observability": {
"enabled": true,
},
"routes": [
{
"pattern": "frontend-php-con.hokkaido.jp",
"custom_domain": true,
},
],
"d1_databases": [
{
"binding": "DB",
"database_name": "frontend-phpcon-do-website",
"database_id": "cb0013bd-ed65-468d-ad89-c0058974002b",
},
],
}