Skip to content

fix: Remove EXCLUDE_PLATFORM_ENTERPRISE from netlify.toml build contexts#1185

Closed
llewellyn-sl wants to merge 1 commit intomasterfrom
fix/netlify-enterprise-include
Closed

fix: Remove EXCLUDE_PLATFORM_ENTERPRISE from netlify.toml build contexts#1185
llewellyn-sl wants to merge 1 commit intomasterfrom
fix/netlify-enterprise-include

Conversation

@llewellyn-sl
Copy link
Contributor

Summary

  • Removes EXCLUDE_PLATFORM_ENTERPRISE="" from both [context.production.build.environment] and [context.deploy-preview.build.environment]

Setting the variable to an empty string in netlify.toml may 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, so process.env.EXCLUDE_PLATFORM_ENTERPRISE ? null : docs_platform_enterprise correctly includes enterprise docs.

Test plan

  • Confirm production build completes without exit code 137
  • Confirm enterprise docs appear in the production and preview builds
  • Verify the Netlify UI environment variable EXCLUDE_PLATFORM_ENTERPRISE is unset or empty (if still set in the UI it should be cleared there too)

🤖 Generated with Claude Code

@netlify
Copy link

netlify bot commented Mar 6, 2026

Deploy Preview for seqera-docs ready!

Name Link
🔨 Latest commit 9705dd7
🔍 Latest deploy log https://app.netlify.com/projects/seqera-docs/deploys/69ab378452c7580008bf31d5
😎 Deploy Preview https://deploy-preview-1185--seqera-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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>
@llewellyn-sl llewellyn-sl force-pushed the fix/netlify-enterprise-include branch from 4c44b1b to 9705dd7 Compare March 6, 2026 20:22
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.

1 participant