How to redirect from non www to www?

On Render, they give us new A (@) record to redirect from non www to www
Is there any similar method provided in Fly?

Currently, the only way to do this is by implementing the redirection logic in your app directly.

Can you tell us more about how this work with Render? Do they have a service dedicated to redirecting non-www requests to www locations?

When we create an app in Render, they always give us 2 step for the certs

  1. Is for CNAME record
  2. Is for A record (for them to redirect from non www to www)

See this example

Docs:

I’d really like to see this too!

I use Cloudflare for this.

Redirect www.example.com to example.com - Tutorial - Cloudflare Community

Or

Redirect example.com to www.example.com - Tutorial - Cloudflare Community

Have to do this just now - what’s the canonical way to do this with Fly?