diff --git a/next.config.mjs b/next.config.mjs index 8d3f99c..df685c8 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,4 +1,4 @@ -import { withPayload } from '@payloadcms/next' +import withPayload from '@payloadcms/next/withPayload' /** @type {import('next').NextConfig} */ const nextConfig = { diff --git a/src/app/(payload)/admin/[[...segments]]/page.tsx b/src/app/(payload)/admin/[[...segments]]/page.tsx index 6dd436a..1162425 100644 --- a/src/app/(payload)/admin/[[...segments]]/page.tsx +++ b/src/app/(payload)/admin/[[...segments]]/page.tsx @@ -1,7 +1,7 @@ /* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */ import config from '@payload-config' /* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */ -import { RootPage } from '@payloadcms/next/views' +import { RootPage } from '@payloadcms/next/views/Root/index' type Args = { params: { diff --git a/src/app/(payload)/layout.tsx b/src/app/(payload)/layout.tsx index 71e8944..5ba6dae 100644 --- a/src/app/(payload)/layout.tsx +++ b/src/app/(payload)/layout.tsx @@ -2,7 +2,7 @@ /* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */ import React from 'react' import configPromise from '@payload-config' -import { RootLayout } from '@payloadcms/next/layouts' +import { RootLayout } from '@payloadcms/next/layouts/Root/index' import '@payloadcms/next/css' import './custom.scss'