We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfdcb51 commit 0c0b0feCopy full SHA for 0c0b0fe
docs/authentication/overview.mdx
@@ -142,14 +142,17 @@ import { buildConfig } from 'payload'
142
export default buildConfig({
143
// ...
144
// highlight-start
145
- autoLogin:
146
- process.env.NEXT_PUBLIC_ENABLE_AUTOLOGIN === 'true'
147
- ? {
148
- email: '[email protected]',
149
- password: 'test',
150
- prefillOnly: true,
151
- }
152
- : false,
+ admin: {
+ autoLogin:
+ process.env.NODE_ENV === 'development'
+ ? {
+ email: '[email protected]',
+ password: 'test',
+ prefillOnly: true,
+ }
153
+ : false,
154
155
+
156
// highlight-end
157
})
158
```
0 commit comments