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