Realm HTTPS Endpoints and functions suitable for remix.run?

I’m looking at remix.run and how they manage to deploy the server on all kind of serverless and edge infrastructure.

Is it possible to write an adapter to deploy a remix.run application to a mongodb realm https endpoint?

I imagine the first obstacle would be to define a wildcard https endpoint, but I’m not sure…