Skip to content

Preserve backticks in Helm ref docs - #280

Merged
artberger merged 1 commit into
mainfrom
adb-helm-fix
Dec 5, 2025
Merged

Preserve backticks in Helm ref docs#280
artberger merged 1 commit into
mainfrom
adb-helm-fix

Conversation

@artberger

@artberger artberger commented Dec 5, 2025

Copy link
Copy Markdown
Collaborator

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
artberger added a commit that referenced this pull request Jan 5, 2026
doc builds are breaking with errors like:

```
09:43:27.077	Error occurred prerendering page "/docs/kagent/resources/helm". Read more: https://nextjs.org/docs/messages/prerender-error
09:43:27.077	ReferenceError: KMCP_VERSION is not defined
```

it looks like the ${KMCP_VERSION} does not have codeticks so it breaks the build

follow up to #280

Signed-off-by: Art Berger <art.berger@solo.io>
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.

2 participants