How can I use two different commands to build two projects from the same repository using netlify.toml?

I have a site built with React Router. To deploy the site, I use npm run build

Additionally, I have a Storybook for that site. Running npm run build-storybook generates a static site in the storybook-static directory

How can I build these two sites in different Netlify projects? It seems that netlify.toml overrides the setup in the dashboard, and I cannot find a way in netlify.toml to use the project name or something similar as context. I’m also not finding any documentation related to pointing to different netlify.toml files while using the same base directory

Ideally, you should have a monorepo with each project in its separate folder. But if that’s not possible, don’t use netlify.toml for build command, specify it in the UI.

This is one of the most common setups for Storybook. I don’t want to deal with the complexities of a monorepo just to deploy Storybook. It would be great to have a way to make the netlify.toml file site-aware