Deploying Storybook

Hi! I’m a bif fan of netflify, but i’m struggling with an issue, maybe we could all resolve it.

I have a react-webpack project hidrated by a function (apollo-lambda-server) and is great, but i’m trying to deploy also my storybook (react components library), so the designers can play with it.

It is just an npm run build-storybook command, so i’ve tried creating another Site and deploying it manually, but it is getting my default netlify.toml configuration and deploying the main react project build.

Is there a way to solve it? Maybe using the same site and some context? Thanks a lot.

1 Like

Tis a known issue that right now we don’t respect netlify.toml in other directories when building. You cannot successfully use netlify.toml to control either site you have hooked up to the same repo, unless they share build commands (or you don’t specify a build command in the file, specifying instead in our UI for EACH SITE).

We might deploy a change for that soon so I’ll follow up here if we do!

1 Like

Thanks a lot about that!

Any chance there has been any progress on this in the meantime?
Basically trying to do the same things and deploy storybook, next to our our regular Gatsby project

Same here: I’d like to deploy both Storybook and a NextJS site using a single repository.

I’m guessing we would need to restructure internal directories to work like a monorepo? Common configurations | Netlify Docs