How to Deploy to Subdomains (dev, staging, production) with a Custom Domain in FlutterFlow?

Best Practices

Hi everyone,

I am Emmanuel Katto from Dubai, United Arab Emirates (UAE)

hope you're all doing well. I’m coming from a traditional software development background where we usually have separate environments for development, staging, and production—each with its own server and database. Now, I’m working on a project in FlutterFlow and I’m trying to replicate this kind of setup.

We have a custom domain connected to the project for our staging environment, but I’d like to set up different subdomains like:

  • dev.customdomain.com

  • staging.customdomain.com

  • customdomain.com (for production)

Here’s what I’ve tried so far:

  • I attempted to use branching, but it seems like I can only deploy from the main branch.

  • I also created individual environments for separation of databases, but I couldn’t find a way to route subdomains to these environments. The deployment page only allows setting a site URL tied to the .flutterflow.app domain.

I’ve gone through FlutterFlow's documentation on environments, web publishing, and branching but still haven’t found a solid solution.

Has anyone else set up something similar? Any advice or suggestions would be really helpful. Thanks!

Regards

Emmanuel Katto

3