Skip to content

Conversation

@artberger
Copy link
Collaborator

@artberger artberger commented Dec 5, 2025

The Cloudflare builds were failing, and I noticed this error in them:

2025-12-05T16:56:27.380Z	Error occurred prerendering page "/docs/kagent/resources/helm". Read more: https://nextjs.org/docs/messages/prerender-error
2025-12-05T16:56:27.381Z	ReferenceError: KMCP_VERSION is not defined
2025-12-05T16:56:27.381Z	    at g (.next/server/app/docs/kagent/resources/helm/page.js:1:3812)
2025-12-05T16:56:27.381Z	    at h (.next/server/app/docs/kagent/resources/helm/page.js:1:37261)
2025-12-05T16:56:27.381Z	    at stringify (<anonymous>) {
2025-12-05T16:56:27.382Z	  digest: '3541987100'
2025-12-05T16:56:27.382Z	}

the update-ref-docs was removing backticks from the Helm ref docs, I'm not sure why. But I think adding it will prevent the build from thinking this ${KMCP_VERSION} variable is jsx that it needs to interpret.

Builds locally for me:
image

The Cloudflare builds were failing, and I noticed this error in them:
```
2025-12-05T16:56:27.380Z	Error occurred prerendering page "/docs/kagent/resources/helm". Read more: https://nextjs.org/docs/messages/prerender-error
2025-12-05T16:56:27.381Z	ReferenceError: KMCP_VERSION is not defined
2025-12-05T16:56:27.381Z	    at g (.next/server/app/docs/kagent/resources/helm/page.js:1:3812)
2025-12-05T16:56:27.381Z	    at h (.next/server/app/docs/kagent/resources/helm/page.js:1:37261)
2025-12-05T16:56:27.381Z	    at stringify (<anonymous>) {
2025-12-05T16:56:27.382Z	  digest: '3541987100'
2025-12-05T16:56:27.382Z	}
```

the update-ref-docs was removing backticks from the Helm ref docs, I'm not sure why. But I think adding it will prevent the build from thinking this `${KMCP_VERSION}` variable is jsx that it needs to interpret.

Signed-off-by: Art Berger <art.berger@solo.io>
@artberger artberger self-assigned this Dec 5, 2025
@artberger artberger added the bug Something isn't working label Dec 5, 2025
@artberger artberger merged commit 5c0b938 into main Dec 5, 2025
4 checks passed
@artberger artberger deleted the adb-helm-fix branch December 5, 2025 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants