Skip to content

chore: add deployment for native hosting#2835

Open
chanceaclark wants to merge 3 commits intoalphafrom
chore/native-hosting-deployment
Open

chore: add deployment for native hosting#2835
chanceaclark wants to merge 3 commits intoalphafrom
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: 1acbcfe

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 26, 2026 11:11pm

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
Comment on lines +28 to +30
- name: Install Catalyst CLI
run: pnpm add @bigcommerce/catalyst@alpha @opennextjs/cloudflare
working-directory: core
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is our example gh-action, should we conditionally run this if it's already installed?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking about this earlier this morning, I say we keep it until the create-catalyst CLI installs Native Hosting deps for you; technically if someone follows documentation correctly, they won't need this step but right now there's not a huge risk to leaving it in (unless we ship a breaking change to the CLI on alpha, or something similar, which installing @whatever could actually break things)

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 18, 2026

Bundle Size Report

Comparing against baseline from 620ac0e (2026-03-26).

No bundle size changes detected.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 18, 2026

Unlighthouse Performance Comparison — Vercel

Comparing PR preview deployment Unlighthouse scores vs production Unlighthouse scores.

Summary Score

Aggregate score across all categories as reported by Unlighthouse.

Prod Desktop Prod Mobile Preview Desktop Preview Mobile
Score 92 93 91 94

Category Scores

Category Prod Desktop Prod Mobile Preview Desktop Preview Mobile
Performance 77 78 74 76
Accessibility 95 95 95 98
Best Practices 100 100 95 95
SEO 100 100 100 100

Core Web Vitals

Metric Prod Desktop Prod Mobile Preview Desktop Preview Mobile
LCP 3.5 s 4.0 s 4.4 s 4.4 s
CLS 0 0.194 0.037 0.192
FCP 1.2 s 1.2 s 1.2 s 1.2 s
TBT 0 ms 0 ms 0 ms 0 ms
Max Potential FID 50 ms 50 ms 50 ms 40 ms
Time to Interactive 3.6 s 4.0 s 4.4 s 4.4 s

Full Unlighthouse report →

matthewvolk and others added 2 commits March 26, 2026 17:10
- 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 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
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.

2 participants