DEV Community

vineel vanjari
vineel vanjari

Posted on

Automating Flutter Web Deployment to Render Using Branch Strategy πŸš€

When deploying my Flutter Web app 🌐 to Render, I initially followed a manual process β€” build locally πŸ’», copy the build/web folder πŸ“ into another repo, and push to deploy. It worked, but it wasn’t scalable. I simplified everything using a single repository with two branches 🌿: master for development and production for deployment. Render watches production and runs a build.sh script βš™οΈ to build automatically. I also added an SPA rewrite rule πŸ” to fix routing. Now deployment is simple, clean, and fully automated πŸš€.

Full guide:
https://vineelvanjari.com/blogs/flutter/flutter-render-deployment-guide

Top comments (0)