Best Practices for Dev Branch

Hi,

Our git pattern is to merge to open PR’s against dev. When it’s ready to ship we merge to dev to main. What’s the best way to setup my web service on render? Should I create a 2nd service specifically for dev and enable previews there? We also use storybooks for testing. What’s the best way to be able to easy test that?

Thanks

Hello joekim,

It sounds like you have the right idea! You should be able to have separate services for your dev and main branches, and you can then enable PR Previews for the service tracking your dev branch.

I believe you should be able to host your Storybook as a static service as well from the same repo. Have you tried using Storybook on Render yet? And if so, are there any troubles you were running into?

Hope that helps as a starting point!

1 Like

Hi Danielle,

Yup. I set up things the way you described. dev and prod are two separate projects with dev enabling PR previews and storybooks as a static site against dev.

Thanks

1 Like