Fix login
This commit is contained in:
@@ -3,6 +3,8 @@ import type { Metadata } from 'next';
|
||||
import config from '../../../../payload.config';
|
||||
import { importMap } from '../importMap';
|
||||
|
||||
export const dynamic = 'force-dynamic';
|
||||
|
||||
type Props = {
|
||||
params: Promise<{ segments?: string[] }>;
|
||||
searchParams: Promise<{ [key: string]: string | string[] | undefined }>;
|
||||
|
||||
@@ -11,6 +11,7 @@ import { Media } from './payload/collections/Media'
|
||||
|
||||
export default buildConfig({
|
||||
secret: process.env.PAYLOAD_SECRET || 'change-moi',
|
||||
serverURL: process.env.NEXT_PUBLIC_SERVER_URL || '',
|
||||
editor: lexicalEditor(),
|
||||
routes: {
|
||||
admin: '/gestion59',
|
||||
|
||||
Reference in New Issue
Block a user