fix: Remove EXCLUDE_PLATFORM_ENTERPRISE from netlify.toml build contexts#1185
Closed
llewellyn-sl wants to merge 1 commit intomasterfrom
Closed
fix: Remove EXCLUDE_PLATFORM_ENTERPRISE from netlify.toml build contexts#1185llewellyn-sl wants to merge 1 commit intomasterfrom
llewellyn-sl wants to merge 1 commit intomasterfrom
Conversation
✅ Deploy Preview for seqera-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
… build
- Add ${userName} dynamic label variable to resource-labels overview and
troubleshooting pages (cloud, enterprise, and versioned 25.3 docs)
- Fix typo S{userName} -> ${userName} in versioned troubleshooting page
- Add production build context to netlify.toml: excludes vNext and Wave/
Fusion/MultiQC/CLI to stay within memory limits, includes enterprise docs
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
4c44b1b to
9705dd7
Compare
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.
Summary
EXCLUDE_PLATFORM_ENTERPRISE=""from both[context.production.build.environment]and[context.deploy-preview.build.environment]Setting the variable to an empty string in
netlify.tomlmay not override a truthy value already set in the Netlify UI environment variables, causing enterprise docs to be unintentionally excluded from the build — which is the wrong behaviour and contributed to OOM 137 errors by leaving the build in an unexpected state.Removing the variable from the toml entirely means Netlify's JS runtime sees
undefined, which is falsy, soprocess.env.EXCLUDE_PLATFORM_ENTERPRISE ? null : docs_platform_enterprisecorrectly includes enterprise docs.Test plan
EXCLUDE_PLATFORM_ENTERPRISEis unset or empty (if still set in the UI it should be cleared there too)🤖 Generated with Claude Code