Emdash source with visual editor image upload fix
Fixes: 1. media.ts: wrap placeholder generation in try-catch 2. toolbar.ts: check r.ok, display error message in popover
This commit is contained in:
27
templates/portfolio-cloudflare/wrangler.jsonc
Normal file
27
templates/portfolio-cloudflare/wrangler.jsonc
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"$schema": "node_modules/wrangler/config-schema.json",
|
||||
"name": "my-portfolio-site",
|
||||
"main": "./src/worker.ts",
|
||||
"compatibility_date": "2026-02-24",
|
||||
"compatibility_flags": ["nodejs_compat"],
|
||||
"d1_databases": [
|
||||
{
|
||||
"binding": "DB",
|
||||
"database_name": "my-portfolio-site",
|
||||
// Run `wrangler d1 create my-portfolio-site` and paste the real ID here for deploy
|
||||
"database_id": "local",
|
||||
},
|
||||
],
|
||||
"r2_buckets": [
|
||||
{
|
||||
"binding": "MEDIA",
|
||||
"bucket_name": "my-portfolio-media",
|
||||
},
|
||||
],
|
||||
// Worker Loader for plugin sandboxing
|
||||
"worker_loaders": [
|
||||
{
|
||||
"binding": "LOADER",
|
||||
},
|
||||
],
|
||||
}
|
||||
Reference in New Issue
Block a user