From 35c24e0e0f3feb570a2bb4c193865410b6d5990a Mon Sep 17 00:00:00 2001 From: igor-holt <125706350+igor-holt@users.noreply.github.com> Date: Tue, 28 Jul 2026 07:24:05 +0000 Subject: [PATCH 1/2] feat: integrate project genie simulated continuous build Add project-genie configuration to the main ecosystem.config.cjs to continuously run scripts/genesis.cjs for dynamic procedural generation of React components, simulating live building. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com> --- ecosystem.config.cjs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ecosystem.config.cjs b/ecosystem.config.cjs index 34c634da7..1345692a5 100644 --- a/ecosystem.config.cjs +++ b/ecosystem.config.cjs @@ -107,6 +107,19 @@ module.exports = { COMPUTE_MODE: 'local', ALWAYS_ON: 'true' } + }, + { + name: 'project-genie', + script: './scripts/genesis.cjs', + autorestart: true, + watch: false, + max_memory_restart: '300M', + restart_delay: 5000, + env: { + GENESIS_LOOP: 'true', + FORCE_MUTATION: 'true', + ALWAYS_ON: 'true' + } } ] }; From 6ac139e4f2c9aad83a93398100ca4d17d1d120a9 Mon Sep 17 00:00:00 2001 From: igor-holt <125706350+igor-holt@users.noreply.github.com> Date: Tue, 28 Jul 2026 07:40:10 +0000 Subject: [PATCH 2/2] fix: correct Cloudflare Workers CI build config in wrangler.toml Updated `wrangler.toml` to enforce ESM mode for the main worker script by pointing to `index.mjs` and renaming the file accordingly. Corrected the build command to target `yennefer-observatory` with `--legacy-peer-deps`, updated the assets directory to `yennefer-observatory/dist`, set the compatibility date to `2024-04-01`, and removed the unsupported `[placement]` section to prevent "Workers Builds" CI check failures. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com> --- workers/{index.js => index.mjs} | 0 wrangler.toml | 12 ++++-------- 2 files changed, 4 insertions(+), 8 deletions(-) rename workers/{index.js => index.mjs} (100%) diff --git a/workers/index.js b/workers/index.mjs similarity index 100% rename from workers/index.js rename to workers/index.mjs diff --git a/wrangler.toml b/wrangler.toml index cd821b031..62e440d07 100644 --- a/wrangler.toml +++ b/wrangler.toml @@ -1,6 +1,6 @@ name = "yennefer" -main = "workers/index.js" -compatibility_date = "2024-09-23" +main = "workers/index.mjs" +compatibility_date = "2024-04-01" compatibility_flags = ["nodejs_compat"] # ─── Build step ────────────────────────────────────────────────────────────── @@ -9,7 +9,7 @@ compatibility_flags = ["nodejs_compat"] # Installs frontend deps and builds the SPA so frontend/build exists before # `wrangler deploy` uploads assets. NODE_OPTIONS is required for # react-scripts 5.x + Node 18+ (webpack 4 OpenSSL 3.0 compatibility). -command = "cd frontend && npm install --include=dev && GENERATE_SOURCEMAP=false CI=false NODE_OPTIONS=--openssl-legacy-provider npm run build" +command = "cd yennefer-observatory && npm install --legacy-peer-deps && npm run build" # ─── Static Assets (React SPA build output) ────────────────────────────────── # Built by `npm run build` (root package.json) before every `wrangler deploy`. @@ -17,13 +17,9 @@ command = "cd frontend && npm install --include=dev && GENERATE_SOURCEMAP=false # The ASSETS binding serves the React bundle with proper cache headers and # falls back to index.html for client-side routing. [assets] -directory = "frontend/build" +directory = "yennefer-observatory/dist" binding = "ASSETS" -# ─── Placement ─────────────────────────────────────────────────────────────── -[placement] -mode = "smart" - # ─── Production environment (yennefer.quest) ───────────────────────────────── # BACKEND_URL is set as a Cloudflare Worker secret (not a plain var) so it # stays encrypted and is never committed to source: