Skip to content
Back

env var - APP_DOMAIN

  • 0
  • Self Hosted
  • Flutter
  • General
paulonerl
4 Aug, 2025, 13:38

Hey guys I am developing a flutter app - the app is already in production. Now I need to change the URL from the public IP to a domain. I cannot break the old url because users already use this app and this would make the app non-functional

My question is - what would the best approach be? can i declare two urls in the env file? I already tried to make a redirection with nginx but appwrite prohibits this...

Any suggestions?

TL;DR
Developers are trying to change the URL of a Flutter app from a public IP to a domain without breaking the existing functionality for users. They have tried redirecting with Nginx but encountered issues with Appwrite blocking it. One solution could be using environmental variables to declare both URLs and conditionally using them in the app based on the environment.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more