Conversation
Two bootstrap fixes after first deploy attempt: - backend/package.json: add engines.node ">=20" so Nixpacks installs Node 20 on Railway instead of the default 18 (which is EOL and was removed). - .github/workflows/ci-cd.yml: install bun in deploy-frontend before the OpenNext build. OpenNext detects frontend/bun.lock and invokes `bun run build`, which fails on a runner with only Node installed. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Wrangler 4.x requires Node ≥22.0.0; the deploy-frontend job was on Node 20 and failed at the deploy step. ci-frontend stays on Node 20 (only used for typecheck/build, not wrangler). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Path-filter now matches .github/workflows/** in both backend and frontend filters. Means a workflow-only edit redeploys both packages — which is the right default given any workflow change can affect either deploy. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Brings staging-tested deploy fixes into main so production deploys work.
Fixes
backend/package.json: pinengines.node ">=20"so Nixpacks installs Node 20 (default was Node 18, now EOL on Railway)..github/workflows/ci-cd.yml:deploy-frontendnow uses Node 22 (Wrangler 4.x requirement).deploy-frontendso OpenNext's bun-via-bun.lock invocation works..github/workflows/**in both backend and frontend filters, so a workflow change triggers both deploys.Verified on staging
https://backend-staging-41ef.up.railway.app/health→{"ok":true}https://mike-frontend-staging.origen.workers.dev→ 307 redirect, title "Mike - AI Legal Platform"On merge, the production deploys will pause at the required-reviewer gate (your approval).
🤖 Generated with Claude Code