chore: add hosted Cloudflare deploy config (#66)

Keep app.openseo.so routes out of the default Wrangler config so the public Deploy to Cloudflare button continues to work.
This commit is contained in:
Ben Senescu 2026-04-03 18:51:12 -04:00 committed by Ben Senescu
parent 762a212aab
commit a83940ddfc
2 changed files with 50 additions and 0 deletions

View File

@ -13,6 +13,7 @@
"lint:fix": "oxlint . --type-aware --fix",
"preview": "npm run build && vite preview --port 3001",
"deploy": "npm run db:migrate:prod && npm run build && wrangler deploy",
"deploy:hosted": "npm run db:migrate:prod:hosted && npm run build && wrangler deploy --config wrangler.app.jsonc",
"cf-typegen": "wrangler types",
"types:check": "tsc --noEmit",
"format:check": "prettier --check .",
@ -21,6 +22,7 @@
"db:generate": "drizzle-kit generate",
"db:migrate:local": "wrangler d1 migrations apply DB --local",
"db:migrate:prod": "wrangler d1 migrations apply DB --remote",
"db:migrate:prod:hosted": "wrangler d1 migrations apply DB --remote --config wrangler.app.jsonc",
"knip": "knip",
"release:notes": "node scripts/release-notes.mjs",
"test": "vitest run",

48
wrangler.app.jsonc Normal file
View File

@ -0,0 +1,48 @@
{
// Keep bindings in sync with wrangler.jsonc; only routes differ here.
"$schema": "node_modules/wrangler/config-schema.json",
"name": "open-seo",
"main": "src/server.ts",
"compatibility_date": "2025-09-02",
"compatibility_flags": ["nodejs_compat"],
"observability": {
"enabled": true,
},
"routes": [
{
"pattern": "app.openseo.so",
"custom_domain": true,
},
{
"pattern": "www.app.openseo.so",
"custom_domain": true,
},
],
"workflows": [
{
"name": "site-audit-workflow",
"binding": "SITE_AUDIT_WORKFLOW",
"class_name": "SiteAuditWorkflow",
},
],
"kv_namespaces": [
{
"binding": "KV",
"id": "4abd52f3f2c549ac83cc2cb4ceec8620",
},
],
"d1_databases": [
{
"binding": "DB",
"database_name": "open-seo",
"database_id": "37bee90a-e1aa-404f-b01e-b0d1d479bda1",
"migrations_dir": "drizzle",
},
],
"r2_buckets": [
{
"bucket_name": "open-seo",
"binding": "R2",
},
],
}