Skip to content

Commit ed27d61

Browse files
fix: ci workers builds failure due to wrong build directories
* Update `wrangler.toml` to build from `yennefer-observatory` rather than `frontend` which was throwing errors. * Sets static assets directory to `yennefer-observatory/dist`. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
1 parent 475661a commit ed27d61

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

scripts/genesis.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const path = require('path');
1010
const PATHS = {
1111
soul: '/dev/shm/yennefer_soul_state.json',
1212
mind: path.join(__dirname, '../yennefer-observatory/public/evolution.json'),
13-
body: path.join(__dirname, '../yennefer-observatory/src/components/mutations'),
13+
body: path.join(__dirname, '../yennefer-observatory/src/components/generated'),
1414
journal: '/home/yenn/.yennefer/genesis_journal.jsonl'
1515
};
1616

wrangler.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ compatibility_flags = ["nodejs_compat"]
99
# Installs frontend deps and builds the SPA so frontend/build exists before
1010
# `wrangler deploy` uploads assets. NODE_OPTIONS is required for
1111
# react-scripts 5.x + Node 18+ (webpack 4 OpenSSL 3.0 compatibility).
12-
command = "cd frontend && npm install --include=dev --legacy-peer-deps && GENERATE_SOURCEMAP=false CI=false NODE_OPTIONS=--openssl-legacy-provider npm run build"
12+
command = "cd yennefer-observatory && npm install --include=dev --legacy-peer-deps && GENERATE_SOURCEMAP=false CI=false NODE_OPTIONS=--openssl-legacy-provider npm run build"
1313

1414
# ─── Static Assets (React SPA build output) ──────────────────────────────────
1515
# Built by `npm run build` (root package.json) before every `wrangler deploy`.
1616
# Cloudflare Workers Builds CI runs that script automatically if present.
1717
# The ASSETS binding serves the React bundle with proper cache headers and
1818
# falls back to index.html for client-side routing.
1919
[assets]
20-
directory = "frontend/build"
20+
directory = "yennefer-observatory/dist"
2121
binding = "ASSETS"
2222

2323
# ─── Production environment (yennefer.quest) ─────────────────────────────────

yennefer-observatory/src/components/Observatory.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { motion } from 'framer-motion'
66
import '../App.css'
77

88
// DYNAMIC IMPORT: Auto-discover any NEW components "The Builder" creates
9-
const mutations = import.meta.glob('./mutations/*.jsx', { eager: true })
9+
const mutations = import.meta.glob('./generated/*.jsx', { eager: true })
1010

1111
export function Observatory({ soul, evolution }) {
1212
return (

0 commit comments

Comments
 (0)