Repository navigation
Conversation
…fig.json `catalyst build` copied the OpenNext config template unchanged, so a Storefront Hosting project couldn't tune the tag cache for its traffic. The build now reads a `tagCache` key from a committed `catalyst.config.json`, so CI builds use it too. It validates shards (1-8), soft and hard replicas (1-2) and the regional cache TTL (10-300s), writes them to `.bigcommerce/tag-cache.json` for the template to import, and logs the settings it used. Without the file, today's defaults apply. Refs LTRAC-3132
…d env vars CI pipelines can tune one build without editing catalyst.config.json. `catalyst build` and `catalyst deploy` accept `--tag-cache-*` flags with `CATALYST_TAG_CACHE_*` env var fallbacks. They override the file, share its bounds, and the build log names any value that came from one. Refs LTRAC-3132
🦋 Changeset detectedLatest commit: 0c9ef29 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
jorgemoya
marked this pull request as ready for review
December 2, 2026 01:42
…replicas More shards add no read capacity for pages that touch many tags, and every key in the strict schema is hard to remove later, so shards stay fixed at 4. Soft replicas now go up to 4: soft (path) tags are rewritten only on `revalidatePath`, so extra replicas add read headroom for almost no writes. Hard replicas stay capped at 2, since cart, checkout and customer tags are rewritten on every cart and account change. Refs LTRAC-3132
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What/Why?
Refs LTRAC-3132. Design in LTRAC-3130.
catalyst buildcopied the OpenNext config template unchanged, so projects couldn't tune the tag cache. It now reads atagCachekey from a committedcatalyst.config.json, and--tag-cache-*flags orCATALYST_TAG_CACHE_*env vars override it for a single build (buildanddeploy).softReplicashardReplicasregionalCacheTtlSecondsShards stay fixed at 4. Out-of-range values and unknown keys fail the build before it starts. The build log prints the settings it used.
Testing
Unit tests for defaults, overrides, bounds, flags and env vars. Compiled the template with esbuild to confirm the values are inlined. Checked
--helpand the out-of-range error on a built CLI.Migration
None. Projects without
catalyst.config.jsonkeep today's defaults.