I am trying to setup internationalization in Next 13 based on the domain name. However since Render uses a local URL rewrite, the domain in “request.nextUrl”’ is “localhost” and not the domain requested by user.
Is the initial domain kept in a header or somewhere else?
An environment variable won’t fit as it needs to vary depending on the domain.
This previous answer doesn’t address the issue: NextJS Middleware localhost