Fix login

This commit is contained in:
Enguerrand Ozano
2026-02-28 20:45:12 +01:00
parent dfa2c8743f
commit 65f6d1c4d6
2 changed files with 3 additions and 0 deletions

View File

@@ -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 }>;

View File

@@ -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',