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