Fix wrangler.jsonc
This commit is contained in:
@@ -5,11 +5,11 @@
|
||||
"compatibility_date": "2026-01-14",
|
||||
// disable_nodejs_process_v2 needed until unenv fix lands in Pages
|
||||
// See: https://github.com/withastro/astro/issues/14511
|
||||
"compatibility_flags": ["nodejs_compat", "disable_nodejs_process_v2"],
|
||||
"compatibility_flags": [
|
||||
"nodejs_compat",
|
||||
"disable_nodejs_process_v2"
|
||||
],
|
||||
// Static assets served from dist/
|
||||
"assets": {
|
||||
"directory": "./dist",
|
||||
},
|
||||
"routes": [
|
||||
{
|
||||
"pattern": "demo.emdashcms.com",
|
||||
@@ -41,4 +41,4 @@
|
||||
"binding": "LOADER",
|
||||
},
|
||||
],
|
||||
}
|
||||
}
|
||||
@@ -2,12 +2,11 @@
|
||||
"$schema": "node_modules/wrangler/config-schema.json",
|
||||
"name": "emdash-playground",
|
||||
"compatibility_date": "2026-02-24",
|
||||
"compatibility_flags": ["nodejs_compat"],
|
||||
"compatibility_flags": [
|
||||
"nodejs_compat"
|
||||
],
|
||||
// Custom entrypoint that exports EmDashPreviewDB
|
||||
"main": "./src/worker.ts",
|
||||
"assets": {
|
||||
"directory": "./dist",
|
||||
},
|
||||
"durable_objects": {
|
||||
"bindings": [
|
||||
{
|
||||
@@ -19,7 +18,9 @@
|
||||
"migrations": [
|
||||
{
|
||||
"tag": "v1",
|
||||
"new_sqlite_classes": ["EmDashPreviewDB"],
|
||||
"new_sqlite_classes": [
|
||||
"EmDashPreviewDB"
|
||||
],
|
||||
},
|
||||
],
|
||||
"observability": {
|
||||
@@ -34,4 +35,4 @@
|
||||
],
|
||||
// No R2 -- media uploads are blocked in playground mode
|
||||
// No D1 -- database is inside the Durable Object
|
||||
}
|
||||
}
|
||||
@@ -4,10 +4,10 @@
|
||||
// Custom entrypoint that exports EmDashPreviewDB
|
||||
"main": "./src/worker.ts",
|
||||
"compatibility_date": "2026-01-14",
|
||||
"compatibility_flags": ["nodejs_compat", "disable_nodejs_process_v2"],
|
||||
"assets": {
|
||||
"directory": "./dist",
|
||||
},
|
||||
"compatibility_flags": [
|
||||
"nodejs_compat",
|
||||
"disable_nodejs_process_v2"
|
||||
],
|
||||
// Durable Object for preview databases
|
||||
"durable_objects": {
|
||||
"bindings": [
|
||||
@@ -21,10 +21,12 @@
|
||||
"migrations": [
|
||||
{
|
||||
"tag": "v1",
|
||||
"new_sqlite_classes": ["EmDashPreviewDB"],
|
||||
"new_sqlite_classes": [
|
||||
"EmDashPreviewDB"
|
||||
],
|
||||
},
|
||||
],
|
||||
"observability": {
|
||||
"enabled": true,
|
||||
},
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,4 @@
|
||||
{
|
||||
"name": "emdash-blocks",
|
||||
"compatibility_date": "2026-02-25",
|
||||
"assets": {
|
||||
"directory": "./dist",
|
||||
},
|
||||
}
|
||||
}
|
||||
@@ -2,10 +2,9 @@
|
||||
"$schema": "node_modules/wrangler/config-schema.json",
|
||||
"name": "my-emdash-site",
|
||||
"compatibility_date": "2026-02-24",
|
||||
"compatibility_flags": ["nodejs_compat"],
|
||||
"assets": {
|
||||
"directory": "./dist",
|
||||
},
|
||||
"compatibility_flags": [
|
||||
"nodejs_compat"
|
||||
],
|
||||
"d1_databases": [
|
||||
{
|
||||
"binding": "DB",
|
||||
@@ -20,4 +19,4 @@
|
||||
"bucket_name": "my-emdash-media",
|
||||
},
|
||||
],
|
||||
}
|
||||
}
|
||||
@@ -2,10 +2,9 @@
|
||||
"$schema": "node_modules/wrangler/config-schema.json",
|
||||
"name": "my-marketing-site",
|
||||
"compatibility_date": "2026-02-24",
|
||||
"compatibility_flags": ["nodejs_compat"],
|
||||
"assets": {
|
||||
"directory": "./dist",
|
||||
},
|
||||
"compatibility_flags": [
|
||||
"nodejs_compat"
|
||||
],
|
||||
"d1_databases": [
|
||||
{
|
||||
"binding": "DB",
|
||||
@@ -20,4 +19,4 @@
|
||||
"bucket_name": "my-marketing-media",
|
||||
},
|
||||
],
|
||||
}
|
||||
}
|
||||
@@ -2,10 +2,9 @@
|
||||
"$schema": "node_modules/wrangler/config-schema.json",
|
||||
"name": "my-portfolio-site",
|
||||
"compatibility_date": "2026-02-24",
|
||||
"compatibility_flags": ["nodejs_compat"],
|
||||
"assets": {
|
||||
"directory": "./dist",
|
||||
},
|
||||
"compatibility_flags": [
|
||||
"nodejs_compat"
|
||||
],
|
||||
"d1_databases": [
|
||||
{
|
||||
"binding": "DB",
|
||||
@@ -20,4 +19,4 @@
|
||||
"bucket_name": "my-portfolio-media",
|
||||
},
|
||||
],
|
||||
}
|
||||
}
|
||||
@@ -2,10 +2,9 @@
|
||||
"$schema": "node_modules/wrangler/config-schema.json",
|
||||
"name": "my-emdash-site",
|
||||
"compatibility_date": "2026-02-24",
|
||||
"compatibility_flags": ["nodejs_compat"],
|
||||
"assets": {
|
||||
"directory": "./dist",
|
||||
},
|
||||
"compatibility_flags": [
|
||||
"nodejs_compat"
|
||||
],
|
||||
"d1_databases": [
|
||||
{
|
||||
"binding": "DB",
|
||||
@@ -20,4 +19,4 @@
|
||||
"bucket_name": "my-emdash-media",
|
||||
},
|
||||
],
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user