mirror of
https://github.com/djdevin/recflare.git
synced 2026-09-08 06:31:27 -07:00
update wrangler/workers version
This commit is contained in:
@@ -18,7 +18,7 @@ export default defineConfig({
|
||||
{
|
||||
name: 'notify',
|
||||
modules: true,
|
||||
compatibilityDate: '2025-09-20',
|
||||
compatibilityDate: '2026-06-16',
|
||||
compatibilityFlags: ['nodejs_compat'],
|
||||
durableObjects: { RECFLARE_NOTIFICATIONS_HUB: 'NotificationsHub' },
|
||||
script: `
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"$schema": "node_modules/wrangler/config-schema.json",
|
||||
"name": "accounts",
|
||||
"main": "src/accounts.app.ts",
|
||||
"compatibility_date": "2025-09-20",
|
||||
"compatibility_date": "2026-06-16",
|
||||
"compatibility_flags": ["nodejs_compat"],
|
||||
// Shared `recflare` D1 database. The `accounts` table schema/migrations are owned
|
||||
// by the `auth` worker; this worker binds it read/write to look up and create
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"$schema": "node_modules/wrangler/config-schema.json",
|
||||
"name": "api",
|
||||
"main": "src/api.app.ts",
|
||||
"compatibility_date": "2025-09-20",
|
||||
"compatibility_date": "2026-06-16",
|
||||
"compatibility_flags": ["nodejs_compat"],
|
||||
// Shared `recflare` DB. Created manually with `wrangler d1 create recflare`; its
|
||||
// id lives in RECFLARE_D1 (see .env) and the "local" placeholder below is
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"$schema": "node_modules/wrangler/config-schema.json",
|
||||
"name": "auth",
|
||||
"main": "src/auth.app.ts",
|
||||
"compatibility_date": "2025-09-20",
|
||||
"compatibility_date": "2026-06-16",
|
||||
"compatibility_flags": ["nodejs_compat"],
|
||||
// Shared `recflare` D1 database (also used by the rooms worker). The `auth` worker
|
||||
// owns the `accounts` table; a dedicated migrations_table keeps its migration
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"$schema": "node_modules/wrangler/config-schema.json",
|
||||
"name": "cdn",
|
||||
"main": "src/cdn.app.ts",
|
||||
"compatibility_date": "2025-09-20",
|
||||
"compatibility_date": "2026-06-16",
|
||||
"compatibility_flags": ["nodejs_compat"],
|
||||
"cache": {
|
||||
"enabled": true
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"$schema": "node_modules/wrangler/config-schema.json",
|
||||
"name": "chat",
|
||||
"main": "src/chat.app.ts",
|
||||
"compatibility_date": "2025-09-20",
|
||||
"compatibility_date": "2026-06-16",
|
||||
"compatibility_flags": ["nodejs_compat"],
|
||||
"upload_source_maps": true,
|
||||
"observability": {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"$schema": "node_modules/wrangler/config-schema.json",
|
||||
"name": "clubs",
|
||||
"main": "src/clubs.app.ts",
|
||||
"compatibility_date": "2025-09-20",
|
||||
"compatibility_date": "2026-06-16",
|
||||
"compatibility_flags": ["nodejs_compat"],
|
||||
// Shared `recflare` DB (created manually with `wrangler d1 create recflare`; the
|
||||
// "local" placeholder is spliced out at deploy time). The `clubs` worker owns the
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"$schema": "node_modules/wrangler/config-schema.json",
|
||||
"name": "commerce",
|
||||
"main": "src/commerce.app.ts",
|
||||
"compatibility_date": "2025-09-20",
|
||||
"compatibility_date": "2026-06-16",
|
||||
"compatibility_flags": ["nodejs_compat"],
|
||||
"upload_source_maps": true,
|
||||
"observability": {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"$schema": "node_modules/wrangler/config-schema.json",
|
||||
"name": "econ",
|
||||
"main": "src/econ.app.ts",
|
||||
"compatibility_date": "2025-09-20",
|
||||
"compatibility_date": "2026-06-16",
|
||||
"compatibility_flags": ["nodejs_compat"],
|
||||
// Storefront catalogs served dynamically by id: `/api/storefronts/v3/giftdropstore/:id`
|
||||
// fetches `sf{id}.json` from this directory via the ASSETS binding. Drop a new
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"$schema": "node_modules/wrangler/config-schema.json",
|
||||
"name": "img",
|
||||
"main": "src/img.app.ts",
|
||||
"compatibility_date": "2025-09-20",
|
||||
"compatibility_date": "2026-06-16",
|
||||
"compatibility_flags": ["nodejs_compat"],
|
||||
// Static fallback assets (e.g. DefaultProfileImage.jpg served when a key is
|
||||
// missing from R2). `run_worker_first` keeps the Worker in control of routing
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"$schema": "node_modules/wrangler/config-schema.json",
|
||||
"name": "match",
|
||||
"main": "src/match.app.ts",
|
||||
"compatibility_date": "2025-09-20",
|
||||
"compatibility_date": "2026-06-16",
|
||||
"compatibility_flags": ["nodejs_compat"],
|
||||
// Shared `recflare` DB. Reads room scenes for matchmaking, writes a player's
|
||||
// personal dorm room on first dorm entry (see getOrCreateDormRoom), and holds
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"$schema": "node_modules/wrangler/config-schema.json",
|
||||
"name": "notify",
|
||||
"main": "src/notify.app.ts",
|
||||
"compatibility_date": "2025-09-20",
|
||||
"compatibility_date": "2026-06-16",
|
||||
"compatibility_flags": ["nodejs_compat"],
|
||||
"durable_objects": {
|
||||
"bindings": [{ "name": "RECFLARE_NOTIFICATIONS_HUB", "class_name": "NotificationsHub" }]
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"$schema": "node_modules/wrangler/config-schema.json",
|
||||
"name": "ns",
|
||||
"main": "src/ns.app.ts",
|
||||
"compatibility_date": "2025-09-20",
|
||||
"compatibility_date": "2026-06-16",
|
||||
"compatibility_flags": ["nodejs_compat"],
|
||||
"logpush": false,
|
||||
"upload_source_maps": true,
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"$schema": "node_modules/wrangler/config-schema.json",
|
||||
"name": "playersettings",
|
||||
"main": "src/playersettings.app.ts",
|
||||
"compatibility_date": "2025-09-20",
|
||||
"compatibility_date": "2026-06-16",
|
||||
"compatibility_flags": ["nodejs_compat"],
|
||||
// Per-player settings persistence.
|
||||
"kv_namespaces": [
|
||||
|
||||
@@ -18,7 +18,7 @@ export default defineConfig({
|
||||
{
|
||||
name: 'notify',
|
||||
modules: true,
|
||||
compatibilityDate: '2025-09-20',
|
||||
compatibilityDate: '2026-06-16',
|
||||
compatibilityFlags: ['nodejs_compat'],
|
||||
durableObjects: { RECFLARE_NOTIFICATIONS_HUB: 'NotificationsHub' },
|
||||
script: `
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"$schema": "node_modules/wrangler/config-schema.json",
|
||||
"name": "rooms",
|
||||
"main": "src/rooms.app.ts",
|
||||
"compatibility_date": "2025-09-20",
|
||||
"compatibility_date": "2026-06-16",
|
||||
"compatibility_flags": ["nodejs_compat"],
|
||||
// Shared `recflare` DB (room storage lives here). Create it manually with
|
||||
// `wrangler d1 create recflare`, then put the real id in the gitignored root
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"$schema": "node_modules/wrangler/config-schema.json",
|
||||
"name": "storage",
|
||||
"main": "src/storage.app.ts",
|
||||
"compatibility_date": "2025-09-20",
|
||||
"compatibility_date": "2026-06-16",
|
||||
"compatibility_flags": ["nodejs_compat"],
|
||||
"routes": [],
|
||||
// Shared CDN R2 bucket (owned by the `cdn` worker). Uploads land here under a
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"$schema": "node_modules/wrangler/config-schema.json",
|
||||
"name": "www",
|
||||
"main": "src/www.app.ts",
|
||||
"compatibility_date": "2025-09-20",
|
||||
"compatibility_date": "2026-06-16",
|
||||
"compatibility_flags": ["nodejs_compat"],
|
||||
"routes": [],
|
||||
// React SPA client build (Vite emits it to dist/www/client). Static assets are
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"$schema": "node_modules/wrangler/config-schema.json",
|
||||
"name": "{{ slug name }}",
|
||||
"main": "src/{{ slug name }}.app.ts",
|
||||
"compatibility_date": "2025-09-20",
|
||||
"compatibility_date": "2026-06-16",
|
||||
"compatibility_flags": ["nodejs_compat"],
|
||||
"routes": [],
|
||||
"upload_source_maps": true,
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"$schema": "node_modules/wrangler/config-schema.json",
|
||||
"name": "{{ slug name }}",
|
||||
"main": "src/{{ slug name }}.app.ts",
|
||||
"compatibility_date": "2025-09-20",
|
||||
"compatibility_date": "2026-06-16",
|
||||
"compatibility_flags": ["nodejs_compat"],
|
||||
"routes": [],
|
||||
"upload_source_maps": true,
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"$schema": "node_modules/wrangler/config-schema.json",
|
||||
"name": "{{ slug name }}",
|
||||
"main": "src/{{ slug name }}.app.ts",
|
||||
"compatibility_date": "2025-09-20",
|
||||
"compatibility_date": "2026-06-16",
|
||||
"compatibility_flags": ["nodejs_compat"],
|
||||
"routes": [],
|
||||
"upload_source_maps": true,
|
||||
|
||||
Reference in New Issue
Block a user