mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
815fd2fee8
Vercel's deploy security check was blocking the showcase-docs build with:
Build Failed
Vulnerable version of next-mdx-remote detected (5.0.0). Please update
to version 6.0.0 or later.
The previous build pipeline fix (npm install + postinstall sibling
scripts) is working — the install runs cleanly and `next build` even
compiles successfully. The deploy is rejected by Vercel's vulnerability
scanner before promotion.
Bump `next-mdx-remote` from ^5.0.0 to ^6.0.0 and refresh the
package-lock. v6's main behavior change is `blockJS` / `blockDangerousJS`
defaulting to `true`, but our content uses JSX components and code-block
embeds rather than raw `{expression}` interpolations, so the existing
MDXRemote call sites need no option changes. Verified with a clean local
`next build` of shell-docs (29/29 pages, no errors).
40 lines
1.2 KiB
JSON
40 lines
1.2 KiB
JSON
{
|
|
"name": "@copilotkit/showcase-shell-docs",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"postinstall": "cd ../scripts && npm install --no-audit --no-fund --silent",
|
|
"predev": "tsx ../scripts/generate-registry.ts && tsx ../scripts/bundle-demo-content.ts && tsx ../scripts/generate-search-index.ts",
|
|
"dev": "next dev --port 3003",
|
|
"build": "tsx ../scripts/generate-registry.ts && tsx ../scripts/bundle-demo-content.ts && tsx ../scripts/generate-search-index.ts && next build",
|
|
"start": "next start -p 3003",
|
|
"lint": "next lint"
|
|
},
|
|
"dependencies": {
|
|
"gray-matter": "^4.0.3",
|
|
"highlight.js": "^11.11.1",
|
|
"lucide-react": "^0.469.0",
|
|
"next": "^15.0.0",
|
|
"next-mdx-remote": "^6.0.0",
|
|
"posthog-js": "^1.175.0",
|
|
"react": "^19.0.0",
|
|
"react-dom": "^19.0.0",
|
|
"react-ga4": "^2.1.0",
|
|
"rehype-highlight": "^7.0.2",
|
|
"remark-gfm": "^4.0.0",
|
|
"yaml": "^2.7.0"
|
|
},
|
|
"devDependencies": {
|
|
"@tailwindcss/postcss": "^4.0.0",
|
|
"@types/node": "^22.0.0",
|
|
"@types/react": "^19.0.0",
|
|
"postcss": "^8.5.0",
|
|
"tailwindcss": "^4.0.0",
|
|
"tsx": "^4.19.0",
|
|
"typescript": "^5.7.0"
|
|
},
|
|
"engines": {
|
|
"node": ">=18.18"
|
|
}
|
|
}
|