Skip to content

ci: build OpenNext bundle before deploying web#174

Merged
softmarshmallow merged 1 commit into
mainfrom
ci/fix-web-opennext-build
Jun 27, 2026
Merged

ci: build OpenNext bundle before deploying web#174
softmarshmallow merged 1 commit into
mainfrom
ci/fix-web-opennext-build

Conversation

@softmarshmallow

@softmarshmallow softmarshmallow commented Jun 27, 2026

Copy link
Copy Markdown
Member

Follow-up to #173. The first auto-deploy succeeded through D1 migrate + proxy + mock, then failed at Deploy web (OpenNext):

ERROR Could not find compiled Open Next config, did you run the build command?

cf:deploy (opennextjs-cloudflare deploy) only ships pre-built output; the workflow never ran cf:build. This adds a Build web (OpenNext) step before the deploy. Merging re-triggers the auto-deploy to verify end-to-end.

Summary by CodeRabbit

  • Chores
    • Updated the web deployment process to include an additional build step before publishing, helping ensure deployments are prepared correctly.

The first real auto-deploy failed at the web step: opennextjs-cloudflare
deploy ships pre-built output only and errored with 'Could not find
compiled Open Next config'. The workflow never ran cf:build. Add a
Build web (OpenNext) step (pnpm --filter web cf:build) before deploy.

Proxy + mock workers and D1 migrate already succeeded; this is the last
gap before a clean end-to-end deploy.
@softmarshmallow softmarshmallow merged commit f64fa2d into main Jun 27, 2026
2 checks passed
@coderabbitai

coderabbitai Bot commented Jun 27, 2026

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 4792b33e-453b-4db0-8c2b-ee14309e6c42

📥 Commits

Reviewing files that changed from the base of the PR and between 48e6daf and f586ccc.

📒 Files selected for processing (1)
  • .github/workflows/deploy.yml

Walkthrough

The deployment workflow now runs an OpenNext build for the web package before the Cloudflare deploy step.

Changes

Cloudflare deployment workflow

Layer / File(s) Summary
OpenNext build step
.github/workflows/deploy.yml
The workflow adds pnpm --filter web cf:build before the existing web deployment step.

🎯 2 (Simple) | ⏱️ ~10 minutes

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ci/fix-web-opennext-build

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant