generated from payloadcms/plugin-template
-
-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Description
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?
Metadata
Metadata
Assignees
Labels
No labels