I believe the preferred way to lock your app to a region is by using volumes.
For example, this is how I recently locked an app to the lax
region:
- Create a volume in the desired region:
fly volumes create VOLUME_NAME --region lax
- Mount the volume to your app in your
fly.toml
file:
[[mounts]]
destination = "/path/to/volume"
source = "VOLUME_NAME"
Once you do this and re-deploy your app, the fly regions
config will become obsolete. If you try to add a new region, you’ll get a message that regions are being controlled with volumes.