In the docs, doing
export const adminAuthClient = new AuthClient('admin')
and then using adminAuthClient in a client component works in a development environment, but seize to work once in production because it reads directly from process.env.NEXT_PUBLIC_PAYLOAD_AUTH_URL.
It appears like process environment are injected in the browser when in development?