I have set up an Azure Static Web App with a custom domain. Both example.com and www.example.com are correctly set up and working.
I would now like to create some rule in staticwebapp.config.json so all requests coming in to https://example.com/* would redirect to https://www.example.com/*.
Is there a way to do this? I know I can do it with Front door or similar, but can I do it through rules in Static Web App?
I'm not sure if it is possible with rules in staticwebapp.config.json but another option is to set a default domain:
https://learn.microsoft.com/en-us/azure/static-web-apps/custom-domain-default#set-a-default-domain
This does also carry the path over with the redirect.