diff --git a/next.config.mjs b/next.config.mjs index df685c8..8d3f99c 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,4 +1,4 @@ -import withPayload from '@payloadcms/next/withPayload' +import { withPayload } from '@payloadcms/next' /** @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 1162425..6dd436a 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/Root/index' +import { RootPage } from '@payloadcms/next/views' type Args = { params: { diff --git a/src/app/(payload)/layout.tsx b/src/app/(payload)/layout.tsx index 5ba6dae..71e8944 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/Root/index' +import { RootLayout } from '@payloadcms/next/layouts' import '@payloadcms/next/css' import './custom.scss'