Picking custom dev block in netlify.toml

Hi! I’m just getting started with Netlify Dev so this question might not make sense. I’d like to be able to choose which netlify.toml block is used with Netlify Dev instead of it always defaulting to [dev]. This is because I have both a Storybook and a Neutrinojs React app that I’d like to run with the same lambda functions. Of course I can change netlify.toml every time but that seems silly. Would this make sense as a CLI argument or is there a better way to accomplish this goal? Thanks!

3 Likes

Hmm, that actually does actually make a lot of sense. Will circulate this with the team.

3 Likes

This is a fantastic Question. Jealous I didn’t think of it!

netlify dev --context cool-branch

netlify dev --context deploy-preview

2 Likes