Repository navigation
Switch ui-v2 build to self-hosted Nitro node-server preset - #43
jasandroidx wants to merge 1 commit into
Conversation
Configures Nitro in ui-v2/vite.config.ts to use the "node-server" preset instead of "vercel", allowing the application to be built into standalone Node output (.output/server/index.mjs). Copies @electric-sql/pglite WASM and data files into the output assets directory and adds firebase as an explicit ui-v2 dependency. Fully verified standalone SSR, key routes (/ , /oracle, /table, /rooms), and server functions against the built Node server. Co-authored-by: jasandroidx <77057656+jasandroidx@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
|
Closing as superseded by #64 (merged) — that PR ships the self-hosted Nitro node-server preset properly: NITRO_PRESET=node-server conditional in vite.config, a build:box npm script, an AGENTS.md update for the live update loop, and zero new deps. This branch added a firebase dep + a 6.5k-line lockfile and didn't touch the preset wiring. |
Understood. Acknowledging that this work is now obsolete and superseded by #64, and stopping work on this task. |
Summary of Changes
Nitro Preset Change:
ui-v2/vite.config.tsfrompreset: "vercel"topreset: "node-server".nitroconfig to copy@electric-sql/pglitedata & WASM assets (pglite.data,pglite.wasm,initdb.wasm) fromnode_modules/@electric-sql/pglite/dist/to.output/server/_libs/, resolving runtime WASM/data initialization errors when running the built server.Dependencies:
firebase: "^12.19.0"explicitly toui-v2/package.jsonto ensurefirebase/appandfirebase/authresolve cleanly during build.End-to-End Verification:
npm run build(andpnpm build) succeeds cleanly without errors or warnings.node .output/server/index.mjs./,/oracle,/table,/rooms./api/auth/get-session) and TanStack Start server functions.pnpm testandpnpm lint— all unit tests and ESLint checks pass cleanly.PR created automatically by Jules for task 16741676462139704642 started by @jasandroidx