2021年3月24日星期三

Serve Storybook as a Next.js page rather than on separate port

I'm currently doing a little project for myself, but I'm having trouble serving Storybook as a Next page.

At the moment I have 2 "start" commands

npm run dev - Next

npm run storybook - Storybook

Which means dev runs on :3000 and storybook :6006

I would like to somehow merge storybook into my next app as a page, but I'm having a hard time finding any documentation for this.

My ideal scenario would be http://localhost:3000/storybook

Thanks in advanced

https://stackoverflow.com/questions/66791624/serve-storybook-as-a-next-js-page-rather-than-on-separate-port March 25, 2021 at 09:05AM

没有评论:

发表评论