Repository navigation
Expand file tree
/
Copy pathwrangler.jsonc
More file actions
49 lines (49 loc) ยท 1.8 KB
/
Copy pathwrangler.jsonc
File metadata and controls
49 lines (49 loc) ยท 1.8 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
{
"$schema": "node_modules/wrangler/config-schema.json",
"name": "feedback",
"account_id": "94480614a6df7731f1e4491bdac5c440",
"compatibility_date": "2026-09-01",
"compatibility_flags": ["nodejs_compat"],
"main": "@tanstack/react-start/server-entry",
"observability": { "enabled": true },
"upload_source_maps": true,
"routes": [
{ "pattern": "feedback.dalestudy.com", "custom_domain": true },
// ๋ฏธ๋ฆฌ๋ณด๊ธฐ ์ ์ฉ ๋๋ฉ์ธ: ํ๋ก๋์
ํธ๋ํฝ์ ๋ฐ์ง ์๋๋ค(enabled: false)
{ "pattern": "feedback-preview.dalestudy.com", "custom_domain": true, "previews_enabled": true, "enabled": false }
],
"d1_databases": [
{
"binding": "DB",
"database_name": "feedback",
"database_id": "6bbc1200-439a-42a5-8447-4e529f8a3537",
"migrations_dir": "drizzle"
}
],
// PR ๋ฏธ๋ฆฌ๋ณด๊ธฐ(Workers Previews). ๋ธ๋์น๋ง๋ค <๋ธ๋์น>.feedback-preview.dalestudy.com ์ ๋ฌ๋ค.
// D1 ์ ๋ฏธ๋ฆฌ๋ณด๊ธฐ๋ผ๋ฆฌ ํจ๊ป ์ฐ๋ feedback-preview ๋ก โ ํ๋ก๋์
์๋ต์ ๊ฑด๋๋ฆฌ์ง ์๊ฒ.
"previews": {
"d1_databases": [
{
"binding": "DB",
"database_name": "feedback-preview",
"database_id": "0d7d18e8-1e8f-443a-96d3-c1c2afa4d4c7",
"migrations_dir": "drizzle"
}
]
},
// ๋ฏธ๋ฆฌ๋ณด๊ธฐ D1 ๋ง์ด๊ทธ๋ ์ด์
์ ์ฉ(`db:migrate:preview`). `d1 migrations apply` ๋ `previews` ๋ธ๋ก์ D1 ์ ๋ชป ์ฐพ๋๋ค.
// `preview_database_id` ๋ก ํ๋ฉด ๋ก์ปฌ ๊ฐ๋ฐ๋ ๊ทธ id ์ ๋น DB ๋ฅผ ์ฐ๊ฒ ๋ผ์ ์ด๋ ๊ฒ ๋๋ค. ๋ฐฐํฌ์๋ ์ฐ์ง ์๋๋ค.
"env": {
"migrate-preview": {
"d1_databases": [
{
"binding": "DB",
"database_name": "feedback-preview",
"database_id": "0d7d18e8-1e8f-443a-96d3-c1c2afa4d4c7",
"migrations_dir": "drizzle"
}
]
}
}
}