-
Notifications
You must be signed in to change notification settings - Fork 31
Upgrade Next.js to 15, React to 19 #410
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
4ba7f5d
9cf807e
d3512dd
b88e882
dcd7c82
c49704b
ef23b6f
3bc211f
87f5d6e
f575558
709d4d6
e7b4cae
8a531f3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| legacy-peer-deps=true | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -13,23 +13,23 @@ | |||||
| "@docsearch/css": "^3.6.0", | ||||||
| "@mdx-js/loader": "^3.0.1", | ||||||
| "@mdx-js/react": "^3.0.1", | ||||||
| "@next/third-parties": "^14.2.4", | ||||||
| "@next/third-parties": "^15", | ||||||
| "@radix-ui/react-slot": "^1.1.0", | ||||||
| "@repo/ui": "*", | ||||||
| "@repo/utils": "*", | ||||||
| "@storybook/icons": "^1.2.9", | ||||||
| "@types/mdx": "^2.0.13", | ||||||
| "copy-to-clipboard": "^3.3.3", | ||||||
| "framer-motion": "^11.2.12", | ||||||
| "framer-motion": "^12", | ||||||
| "graphql-request": "^7.1.0", | ||||||
| "human-format": "^1.2.0", | ||||||
| "next": "^14.2.4", | ||||||
| "next-plausible": "^3.12.0", | ||||||
| "next": "^15", | ||||||
| "next-plausible": "^4.0.0", | ||||||
| "next-themes": "^0.3.0", | ||||||
|
Comment on lines
24
to
28
|
||||||
| "posthog-js": "^1.306.0", | ||||||
| "prismjs": "^1.29.0", | ||||||
| "react": "^18", | ||||||
| "react-dom": "^18", | ||||||
| "react": "^19", | ||||||
| "react-dom": "^19", | ||||||
| "rehype": "^13.0.1", | ||||||
| "rehype-stringify": "^10.0.0", | ||||||
| "rehype-urls": "^1.2.0", | ||||||
|
|
@@ -41,8 +41,8 @@ | |||||
| "devDependencies": { | ||||||
| "@types/node": "^20", | ||||||
| "@types/prismjs": "^1.26.4", | ||||||
| "@types/react": "^18", | ||||||
| "@types/react-dom": "^18", | ||||||
| "@types/react": "^19", | ||||||
| "@types/react-dom": "^19", | ||||||
| "eslint": "^8", | ||||||
| "eslint-config-next": "14.2.4", | ||||||
|
||||||
| "eslint-config-next": "14.2.4", | |
| "eslint-config-next": "^15", |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| import { type DocsVersion } from '@repo/utils'; | ||
|
|
||
| const baseUrl = 'https://storybook.js.org'; | ||
|
|
||
| export const getLlmsBannerLines = ({ version }: { version: DocsVersion }) => [ | ||
| '# Storybook', | ||
| '', | ||
| '> Storybook is a frontend workshop for building UI components and pages in isolation. It helps with UI development, testing, and documentation.', | ||
| '', | ||
| `Current version: ${version.label} (${version.id})`, | ||
| '', | ||
| '## Documentation', | ||
| '', | ||
| `- [Storybook Docs](${baseUrl}/docs): Main documentation`, | ||
| `- [Full Documentation (Markdown)](${baseUrl}/llms-full.txt): Complete documentation in plain text for LLM consumption`, | ||
| '', | ||
| '## Markdown Access', | ||
| '', | ||
| 'Append `.md` to any docs URL to get clean markdown with code examples:', | ||
| `- \`${baseUrl}/docs/writing-stories/decorators.md\``, | ||
| `- \`${baseUrl}/docs/9/writing-stories/decorators.md\` (Version 9)`, | ||
| '', | ||
| '### Query Parameters', | ||
| '', | ||
| 'All markdown endpoints (`.md` URLs and `llms-full.txt`) support these query parameters:', | ||
| '- `renderer` - Framework filter for code snippets (default: `react`). Options: `react`, `vue`, `angular`, `svelte`, `web-components`, `solid`, `preact`, `html`, `ember`, `qwik`', | ||
| '- `language` - Language filter for code snippets (default: `ts`). Options: `ts`, `js`', | ||
| '- `codeOnly` - When `true`, returns only the code snippets without prose', | ||
| '', | ||
| 'Examples:', | ||
| '- `GET /docs/writing-stories/decorators.md?renderer=vue&language=ts`', | ||
| '- `GET /docs/writing-stories/decorators.md?codeOnly=true`', | ||
| '- `GET /llms-full.txt?renderer=angular&language=js`', | ||
| '', | ||
| '### Versioned Access', | ||
| '', | ||
| 'Prefix the path with a version slug for older versions:', | ||
| ]; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| /// <reference types="next" /> | ||
| /// <reference types="next/image-types/global" /> | ||
| /// <reference path="./.next/types/routes.d.ts" /> | ||
|
|
||
| // NOTE: This file should not be edited | ||
| // see https://nextjs.org/docs/basic-features/typescript for more information. | ||
| // see https://nextjs.org/docs/app/api-reference/config/typescript for more information. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Setting
legacy-peer-deps=truechanges install semantics globally and can mask real peer-dependency incompatibilities (especially during CI), leading to non-deterministic runtime behavior. Prefer resolving the underlying peer conflicts (e.g., aligning Storybook/Next-related versions) and only use this as a last resort (or document/scoped usage if it must remain).