chore: add deployment for native hosting#2835
Conversation
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
1874cbb to
34ab11c
Compare
34ab11c to
55d7370
Compare
55d7370 to
080a96c
Compare
080a96c to
5deedda
Compare
bf2eea0 to
6751f5b
Compare
6751f5b to
3b845ca
Compare
3b845ca to
2d04f60
Compare
2d04f60 to
edb20d5
Compare
| - name: Install Catalyst CLI | ||
| run: pnpm add @bigcommerce/catalyst@alpha @opennextjs/cloudflare | ||
| working-directory: core |
There was a problem hiding this comment.
If this is our example gh-action, should we conditionally run this if it's already installed?
There was a problem hiding this comment.
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)
edb20d5 to
3667a9b
Compare
47c486b to
e001d8e
Compare
e001d8e to
ae567fe
Compare
ae567fe to
4ed085f
Compare
228ff5a to
5e2bc7a
Compare
5e2bc7a to
635906f
Compare
Bundle Size ReportComparing against baseline from No bundle size changes detected. |
Unlighthouse Performance Comparison — VercelComparing PR preview deployment Unlighthouse scores vs production Unlighthouse scores. Summary ScoreAggregate score across all categories as reported by Unlighthouse.
Category Scores
Core Web Vitals
|
635906f to
d9a1354
Compare
de52a91 to
0726131
Compare
0726131 to
6d51ea7
Compare
6d51ea7 to
839cf94
Compare
839cf94 to
911102f
Compare
911102f to
7aa83b1
Compare
- 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
7aa83b1 to
1acbcfe
Compare
What/Why?
Adds CI/CD for deploying the Catalyst storefront to BigCommerce Native Hosting using the
@bigcommerce/catalystalpha CLI and@opennextjs/cloudflare.This PR includes:
.github/workflows/native-hosting.yml) — builds and deploys the storefront on pushes tocanaryand on PRsproxy.tstomiddleware.tsat build time (renames the file, swaps the export, addsruntime: 'experimental-edge') so the OpenNext/Cloudflare build works without maintaining a separatemiddleware.tsin the repo@bigcommerce/catalystas1.0.0-alpha.xwith changesets in pre mode--prebuiltdeploy, credential resolution, deployment error mapping, telemetry updates, and removal of the dev commandTesting
canarycatalyst buildandcatalyst deploy --prebuiltsucceed with the configured secrets/varsMigration
N/A