Skip to content

Conversation

@matthewvolk
Copy link
Contributor

@matthewvolk matthewvolk commented Aug 19, 2025

What/Why?

Warning

Depends on #2531

Previously, build was running inside of a temporary directory in an effort to abstract away Cloudflare-related configuration files (wrangler.jsonc, open-next.config.ts) and dependencies (@opennextjs/cloudflare). The only artifact that we copied from this temporary directory back into the original Catalyst project was a single worker.js file.

Unfortunately, we discovered that the opennextjs-cloudflare preview command needs access to some of the intermediary files that were being deleted when the temporary folder was deleted at the end of build.

This PR removes the temporary directory step and runs opennextjs-cloudflare build to programmatically build the application in core.

Testing

If you'd like to test this PR locally, follow these steps:

  1. Pull down this branch
  2. From packages/cli, run pnpm build
  3. cd into core
  4. Run node /path/to/catalyst/packages/cli/dist/index.js link ...
  5. Run node /path/to/catalyst/packages/cli/dist/index.js build --framework catalyst

Migration

N/A

JIRA: CATALYST-1421

@matthewvolk matthewvolk requested a review from a team as a code owner August 19, 2025 02:05
@changeset-bot
Copy link

changeset-bot bot commented Aug 19, 2025

⚠️ No Changeset found

Latest commit: 97ace8e

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link

vercel bot commented Aug 19, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
catalyst-b2b Ready Ready Preview Comment Aug 19, 2025 8:36pm
catalyst-canary Ready Ready Preview Comment Aug 19, 2025 8:36pm
3 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
catalyst Ignored Ignored Aug 19, 2025 8:36pm
catalyst-au Ignored Ignored Aug 19, 2025 8:36pm
catalyst-uk Ignored Ignored Aug 19, 2025 8:36pm

@matthewvolk matthewvolk force-pushed the CATALYST-1421-refactor-build branch from 6a0939e to 97ace8e Compare August 19, 2025 20:33
@matthewvolk matthewvolk added this pull request to the merge queue Aug 19, 2025
Merged via the queue into canary with commit 16a1197 Aug 19, 2025
13 checks passed
@matthewvolk matthewvolk deleted the CATALYST-1421-refactor-build branch August 19, 2025 20:38
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.

3 participants