mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-07 21:07:46 +00:00
[examples] Update Storybook template (#10063)
To use stable App Router. New deployment: https://storybook-template.vercel.app/
This commit is contained in:
2
.changeset/grumpy-toys-tell.md
Normal file
2
.changeset/grumpy-toys-tell.md
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
---
|
||||||
|
---
|
||||||
@@ -2,7 +2,15 @@
|
|||||||
|
|
||||||
This is a [Next.js](https://nextjs.org/) with [Storybook](https://storybook.js.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
|
This is a [Next.js](https://nextjs.org/) with [Storybook](https://storybook.js.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
|
||||||
|
|
||||||
## Getting Started
|
## Deploy Your Own
|
||||||
|
|
||||||
|
Deploy your own Storybook project with Vercel.
|
||||||
|
|
||||||
|
[](https://vercel.com/new/clone?repository-url=https://github.com/vercel/vercel/tree/main/examples/storybook&template=storybook)
|
||||||
|
|
||||||
|
_Live Example: https://storybook-template.vercel.app_
|
||||||
|
|
||||||
|
## Running Locally
|
||||||
|
|
||||||
First, run the development server:
|
First, run the development server:
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
export async function GET(request: Request) {
|
|
||||||
return new Response('Hello, Next.js!')
|
|
||||||
}
|
|
||||||
@@ -1,8 +1,4 @@
|
|||||||
/** @type {import('next').NextConfig} */
|
/** @type {import('next').NextConfig} */
|
||||||
const nextConfig = {
|
const nextConfig = {}
|
||||||
experimental: {
|
|
||||||
appDir: true,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = nextConfig
|
module.exports = nextConfig
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
{
|
{
|
||||||
"name": "storybook-app",
|
|
||||||
"version": "0.1.0",
|
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev",
|
"dev": "next dev",
|
||||||
@@ -11,25 +9,25 @@
|
|||||||
"build-storybook": "storybook build"
|
"build-storybook": "storybook build"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/node": "18.15.12",
|
"@types/node": "20.2.5",
|
||||||
"@types/react": "18.0.37",
|
"@types/react": "18.2.8",
|
||||||
"@types/react-dom": "18.0.11",
|
"@types/react-dom": "18.2.4",
|
||||||
"next": "13.3.0",
|
"next": "13.4.4",
|
||||||
"react": "18.2.0",
|
"react": "18.2.0",
|
||||||
"react-dom": "18.2.0",
|
"react-dom": "18.2.0",
|
||||||
"typescript": "5.0.4"
|
"typescript": "5.1.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@storybook/addon-essentials": "^7.0.6",
|
"@storybook/addon-essentials": "^7.0.18",
|
||||||
"@storybook/addon-interactions": "^7.0.6",
|
"@storybook/addon-interactions": "^7.0.18",
|
||||||
"@storybook/addon-links": "^7.0.6",
|
"@storybook/addon-links": "^7.0.18",
|
||||||
"@storybook/blocks": "^7.0.6",
|
"@storybook/blocks": "^7.0.18",
|
||||||
"@storybook/nextjs": "^7.0.6",
|
"@storybook/nextjs": "^7.0.18",
|
||||||
"@storybook/react": "^7.0.6",
|
"@storybook/react": "^7.0.18",
|
||||||
"@storybook/testing-library": "^0.0.14-next.2",
|
"@storybook/testing-library": "^0.1.0",
|
||||||
"storybook": "^7.0.6"
|
"storybook": "^7.0.18"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16"
|
"node": ">=18"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user