Realm/Atlas App Hosting Return Html file in response

I have a multi-page application built using nextjs. It creates a file named login.html in my root folder, however, when I go to mydomain.com/login it returns a 404. If I go to mydomain.com/login.html it works, but for obvious reasons this is really not ideal. Does anyone know how to configure atlas app hosting to serve the HTML files for certain routes by default? It’s not that crazy to serve /login.html for /login if you have nothing else.

Thanks!