diff --git a/next.config.ts b/next.config.ts index a78c040b..34902d03 100644 --- a/next.config.ts +++ b/next.config.ts @@ -25,6 +25,7 @@ const nextConfig: NextConfig = { pathname: '/**', }, ], + unoptimized: true, }, }; diff --git a/package.json b/package.json index 28c357ce..ccb7b0fd 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "private": true, "scripts": { "dev": "next dev --turbopack", - "build": "next build", + "build": "next build && storybook build -o public/storybook", "start": "next start", "lint": "next lint", "type-check": "tsc --noEmit", diff --git a/vercel.json b/vercel.json new file mode 100644 index 00000000..afb1d559 --- /dev/null +++ b/vercel.json @@ -0,0 +1,8 @@ +{ + "rewrites": [ + { + "source": "/storybook", + "destination": "/_next/static/storybook/index.html" + } + ] +}