-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwrangler.jsonc
More file actions
95 lines (95 loc) · 3.64 KB
/
Copy pathwrangler.jsonc
File metadata and controls
95 lines (95 loc) · 3.64 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
{
"$schema": "node_modules/wrangler/config-schema.json",
"name": "devmultigroup-web",
"account_id": "4d41dfaeb65887513d0440c9e42cb0b9",
"main": "./dist/_worker.js/index.js",
"compatibility_date": "2026-06-19",
"compatibility_flags": ["nodejs_compat"],
"assets": {
"binding": "ASSETS",
"directory": "./dist"
},
"observability": {
"enabled": true
},
"d1_databases": [
{
"binding": "DB",
"database_name": "devmultigroup-db",
"database_id": "849d67d6-c0e3-4de3-a241-d9b77fa28cd0",
"migrations_dir": "migrations"
},
{
// Shared email-marketing DB; newsletter sign-ups append to the
// "MultiGroup Newsletter" contact list (id 1).
"binding": "MAIL_DB",
"database_name": "mail-templates-db",
"database_id": "e0e1881b-03ba-40b7-ae7e-e04f9f96c54c"
},
{
// MultiGroup Store — SEPARATE database (commerce; Better Auth in v1),
// kept isolated from the content DB. Store migrations live in
// migrations-store/. Local dev uses platformProxy's emulated copy.
"binding": "STORE_DB",
"database_name": "devmultigroup-store-db",
"database_id": "d9798c14-8b4b-46ae-ac18-0b4a399f89cb",
"migrations_dir": "migrations-store"
}
],
"kv_namespaces": [
{
"binding": "CACHE",
"id": "bfcc4b5e3680456ba38cdfcac35bad78"
},
{
// Astro's session store (adapter default binding name). Reuses the same
// KV namespace as CACHE — session keys are namespaced separately.
"binding": "SESSION",
"id": "bfcc4b5e3680456ba38cdfcac35bad78"
}
],
"r2_buckets": [
{
"binding": "MEDIA",
"bucket_name": "devmultigroup-media"
},
{
// Store product images, served via /store/media/<key>. Separate bucket,
// local-only in Phase 1 (emulated by platformProxy under .wrangler/state).
"binding": "STORE_MEDIA",
"bucket_name": "devmultigroup-store-media"
}
],
// Plain (non-secret) vars. AI_GATEWAY_ID names the AI Gateway that every
// embedding call is routed through, for usage analytics / logging / cost
// tracking. Created out-of-band via the AI Gateway API; if it were ever blank,
// embeddings fall back to a direct (ungatewayed) Workers AI call.
// Analytics/observability config. These are all PUBLIC ingest identifiers
// (the same values ship in the client HTML), so they live as plain vars, not
// secrets. SENTRY_DSN is read by the Worker for server-side error capture
// (src/lib/sentry.ts) independent of D1; POSTHOG_KEY/HOST back server-side
// event capture (src/lib/analytics-server.ts). The browser-side keys are
// edited from /admin/settings (D1) and take precedence where both apply.
"vars": {
"AI_GATEWAY_ID": "devmultigroup-search",
"SENTRY_DSN": "https://2ac8e8503fb86d9f0a0c39857e6b600e@o4511607789584384.ingest.de.sentry.io/4511607888347216",
"SENTRY_ENVIRONMENT": "production",
"POSTHOG_KEY": "phc_ClVwVt5T7LOptJMI9Wp8FM9bay0s4OFwcIBVVyzzvY7",
"POSTHOG_HOST": "https://eu.i.posthog.com"
},
// Workers AI — used ONLY to embed text for semantic search (bge-m3). This is
// the embedding engine, not AI Search/AutoRAG; no managed instance exists.
"ai": {
"binding": "AI"
},
// Vectorize index holding one embedding per published content row. Created via
// `wrangler vectorize create devmultigroup-search --dimensions=1024 --metric=cosine`
// with a string metadata index on `type`. No local simulation: in `astro dev`
// this binding is absent, so search degrades to a D1 LIKE scan (see lib/search.ts).
"vectorize": [
{
"binding": "VECTORIZE",
"index_name": "devmultigroup-search"
}
]
}