Sitename-based Netlify config - Storybook


We’re trying to deploy Storybook alongside our React/Gatsby project.
So I’ve set up an additional site on Netlify, triggering a separate build command yarn build-storybook vs. yarn build on our regular site.

We do however have more settings configured on our netlify.toml, such as plugins.
These all get triggered for the Storybook site as well, causing the build to fail.

Is there a way to solve this? Maybe using the deploy context, or check for SITE_NAME or other env variables to disable the plugins?

Hi there, @wslyvh :wave:

It looks like this thread has been a bit quiet since you opened it last week. Sorry about that! Are you still encountering this issue? If so, can you reply with your Netlify site name, as well your recent build log?

Thank you!