Skip to content

chore: add deployment for native hosting#2835

Merged
chanceaclark merged 2 commits intocanaryfrom
chore/native-hosting-deployment
Mar 31, 2026
Merged

chore: add deployment for native hosting#2835
chanceaclark merged 2 commits intocanaryfrom
chore/native-hosting-deployment

Conversation

@chanceaclark
Copy link
Copy Markdown
Contributor

@chanceaclark chanceaclark commented Jan 22, 2026

What/Why?

Adds CI/CD for deploying the Catalyst storefront to BigCommerce Native Hosting using the @bigcommerce/catalyst alpha CLI and @opennextjs/cloudflare.

This PR includes:

  • Native Hosting workflow (.github/workflows/native-hosting.yml) — builds and deploys the storefront on pushes to canary and on PRs
  • Proxy-to-middleware conversion step — automatically converts Next.js 16's proxy.ts to middleware.ts at build time (renames the file, swaps the export, adds runtime: 'experimental-edge') so the OpenNext/Cloudflare build works without maintaining a separate middleware.ts in the repo
  • Alpha CLI + changeset pre-release setup — versions @bigcommerce/catalyst as 1.0.0-alpha.x with changesets in pre mode
  • CLI improvements included in alpha — auth commands, logs command, --prebuilt deploy, credential resolution, deployment error mapping, telemetry updates, and removal of the dev command

Testing

  • Workflow runs on PR open/sync and push to canary
  • Verify the "Convert proxy.ts to middleware.ts" step correctly transforms the file before the Next.js build
  • Confirm catalyst build and catalyst deploy --prebuilt succeed with the configured secrets/vars

Migration

N/A

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Jan 22, 2026

⚠️ No Changeset found

Latest commit: e2659fd

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
Copy Markdown

vercel bot commented Jan 22, 2026

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

Project Deployment Actions Updated (UTC)
catalyst Ready Ready Preview, Comment Mar 31, 2026 3:33pm

Request Review

@chanceaclark chanceaclark force-pushed the chore/native-hosting-deployment branch 3 times, most recently from 1874cbb to 34ab11c Compare January 22, 2026 23:38
@chanceaclark chanceaclark force-pushed the chore/native-hosting-deployment branch from 34ab11c to 55d7370 Compare January 22, 2026 23:45
@chanceaclark chanceaclark force-pushed the chore/native-hosting-deployment branch from 55d7370 to 080a96c Compare January 22, 2026 23:50
@chanceaclark chanceaclark force-pushed the chore/native-hosting-deployment branch from 080a96c to 5deedda Compare January 22, 2026 23:57
@chanceaclark chanceaclark force-pushed the chore/native-hosting-deployment branch 2 times, most recently from bf2eea0 to 6751f5b Compare January 23, 2026 00:09
@chanceaclark chanceaclark force-pushed the chore/native-hosting-deployment branch from 6751f5b to 3b845ca Compare January 28, 2026 18:30
@chanceaclark chanceaclark force-pushed the chore/native-hosting-deployment branch from 3b845ca to 2d04f60 Compare January 28, 2026 20:06
@chanceaclark chanceaclark force-pushed the chore/native-hosting-deployment branch from 2d04f60 to edb20d5 Compare January 28, 2026 20:14
@chanceaclark chanceaclark force-pushed the chore/native-hosting-deployment branch from de52a91 to 0726131 Compare March 26, 2026 15:53
@chanceaclark chanceaclark force-pushed the chore/native-hosting-deployment branch from 0726131 to 6d51ea7 Compare March 26, 2026 16:33
@chanceaclark chanceaclark force-pushed the chore/native-hosting-deployment branch from 6d51ea7 to 839cf94 Compare March 26, 2026 16:51
@chanceaclark chanceaclark force-pushed the chore/native-hosting-deployment branch from 839cf94 to 911102f Compare March 26, 2026 16:57
@chanceaclark chanceaclark force-pushed the chore/native-hosting-deployment branch from 911102f to 7aa83b1 Compare March 26, 2026 17:05
@chanceaclark chanceaclark force-pushed the chore/native-hosting-deployment branch from 7aa83b1 to 1acbcfe Compare March 26, 2026 23:10
@chanceaclark chanceaclark marked this pull request as ready for review March 27, 2026 18:33
@chanceaclark chanceaclark requested a review from a team as a code owner March 27, 2026 18:33
@chanceaclark chanceaclark force-pushed the chore/native-hosting-deployment branch from 1acbcfe to c43ff44 Compare March 31, 2026 15:29
@chanceaclark chanceaclark changed the base branch from alpha to canary March 31, 2026 15:29
chanceaclark and others added 2 commits March 31, 2026 09:31
- Remove pull_request trigger (no preview deployments)
- Add concurrency group to prevent parallel deploys
- Remove jq package.json mutation, use pnpm exec directly
- Add separate generate step for GraphQL types
- Fix env vars to CATALYST_* namespace for CLI commands
- Remove --framework flag (removed in alpha)
- Add --prebuilt to deploy (skip redundant build)
- Add BIGCOMMERCE_API_HOST for integration API
@chanceaclark chanceaclark force-pushed the chore/native-hosting-deployment branch from c43ff44 to e2659fd Compare March 31, 2026 15:32
@chanceaclark chanceaclark enabled auto-merge March 31, 2026 15:33
@chanceaclark chanceaclark added this pull request to the merge queue Mar 31, 2026
Merged via the queue into canary with commit 09f649b Mar 31, 2026
16 of 17 checks passed
@chanceaclark chanceaclark deleted the chore/native-hosting-deployment branch March 31, 2026 15: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