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