chore: change payload-config to @payload-config
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
||||||
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
||||||
import { Account, generateMetadata as generateMeta } from '@payloadcms/next/pages/Account'
|
import { Account, generateMetadata as generateMeta } from '@payloadcms/next/pages/Account'
|
||||||
import config from 'payload-config'
|
import config from '@payload-config'
|
||||||
|
|
||||||
export const generateMetadata = async () => generateMeta({ config })
|
export const generateMetadata = async () => generateMeta({ config })
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { DocumentLayout } from '@payloadcms/next/layouts/Document'
|
import { DocumentLayout } from '@payloadcms/next/layouts/Document'
|
||||||
import configPromise from 'payload-config'
|
import configPromise from '@payload-config'
|
||||||
|
|
||||||
export default async ({ children, params }: { children: React.ReactNode; params }) => (
|
export default async ({ children, params }: { children: React.ReactNode; params }) => (
|
||||||
<DocumentLayout config={configPromise} collectionSlug={params.collection}>
|
<DocumentLayout config={configPromise} collectionSlug={params.collection}>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
||||||
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
||||||
import { Document, generateMetadata as generateMeta } from '@payloadcms/next/pages/Document'
|
import { Document, generateMetadata as generateMeta } from '@payloadcms/next/pages/Document'
|
||||||
import config from 'payload-config'
|
import config from '@payload-config'
|
||||||
|
|
||||||
export const generateMetadata = async ({ params }) => generateMeta({ config, params })
|
export const generateMetadata = async ({ params }) => generateMeta({ config, params })
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
||||||
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
||||||
import { ListView, generateMetadata as generateMeta } from '@payloadcms/next/pages/List'
|
import { ListView, generateMetadata as generateMeta } from '@payloadcms/next/pages/List'
|
||||||
import config from 'payload-config'
|
import config from '@payload-config'
|
||||||
|
|
||||||
export const generateMetadata = async ({ params }) => generateMeta({ config, params })
|
export const generateMetadata = async ({ params }) => generateMeta({ config, params })
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
||||||
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
||||||
import { Document, generateMetadata as generateMeta } from '@payloadcms/next/pages/Document'
|
import { Document, generateMetadata as generateMeta } from '@payloadcms/next/pages/Document'
|
||||||
import config from 'payload-config'
|
import config from '@payload-config'
|
||||||
|
|
||||||
export const generateMetadata = async ({ params }) => generateMeta({ config, params })
|
export const generateMetadata = async ({ params }) => generateMeta({ config, params })
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { DocumentLayout } from '@payloadcms/next/layouts/Document'
|
import { DocumentLayout } from '@payloadcms/next/layouts/Document'
|
||||||
import configPromise from 'payload-config'
|
import configPromise from '@payload-config'
|
||||||
|
|
||||||
export default async ({ children, params }: { children: React.ReactNode; params }) => (
|
export default async ({ children, params }: { children: React.ReactNode; params }) => (
|
||||||
<DocumentLayout config={configPromise} globalSlug={params.global}>
|
<DocumentLayout config={configPromise} globalSlug={params.global}>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { AdminLayout } from '@payloadcms/next/layouts/Admin'
|
import { AdminLayout } from '@payloadcms/next/layouts/Admin'
|
||||||
import configPromise from 'payload-config'
|
import configPromise from '@payload-config'
|
||||||
|
|
||||||
export default async ({ children }: { children: React.ReactNode }) => (
|
export default async ({ children }: { children: React.ReactNode }) => (
|
||||||
<AdminLayout config={configPromise}>{children}</AdminLayout>
|
<AdminLayout config={configPromise}>{children}</AdminLayout>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
||||||
import { Dashboard, generateMetadata as generateMeta } from '@payloadcms/next/pages/Dashboard'
|
import { Dashboard, generateMetadata as generateMeta } from '@payloadcms/next/pages/Dashboard'
|
||||||
import { Metadata } from 'next'
|
import { Metadata } from 'next'
|
||||||
import config from 'payload-config'
|
import config from '@payload-config'
|
||||||
|
|
||||||
export const generateMetadata = async (): Promise<Metadata> => generateMeta({ config })
|
export const generateMetadata = async (): Promise<Metadata> => generateMeta({ config })
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import {
|
|||||||
generateMetadata as generateMeta,
|
generateMetadata as generateMeta,
|
||||||
} from '@payloadcms/next/pages/CreateFirstUser'
|
} from '@payloadcms/next/pages/CreateFirstUser'
|
||||||
import { Metadata } from 'next'
|
import { Metadata } from 'next'
|
||||||
import config from 'payload-config'
|
import config from '@payload-config'
|
||||||
|
|
||||||
export const generateMetadata = async (): Promise<Metadata> => generateMeta({ config })
|
export const generateMetadata = async (): Promise<Metadata> => generateMeta({ config })
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import {
|
|||||||
generateMetadata as generateMeta,
|
generateMetadata as generateMeta,
|
||||||
} from '@payloadcms/next/pages/ForgotPassword'
|
} from '@payloadcms/next/pages/ForgotPassword'
|
||||||
import { Metadata } from 'next'
|
import { Metadata } from 'next'
|
||||||
import config from 'payload-config'
|
import config from '@payload-config'
|
||||||
|
|
||||||
export const generateMetadata = async (): Promise<Metadata> => generateMeta({ config })
|
export const generateMetadata = async (): Promise<Metadata> => generateMeta({ config })
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { Login, generateMetadata as generateMeta } from '@payloadcms/next/pages/Login'
|
import { Login, generateMetadata as generateMeta } from '@payloadcms/next/pages/Login'
|
||||||
import { Metadata } from 'next'
|
import { Metadata } from 'next'
|
||||||
import config from 'payload-config'
|
import config from '@payload-config'
|
||||||
|
|
||||||
export const generateMetadata = async (): Promise<Metadata> => generateMeta({ config })
|
export const generateMetadata = async (): Promise<Metadata> => generateMeta({ config })
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { Logout, generateMetadata as generateMeta } from '@payloadcms/next/pages/Logout'
|
import { Logout, generateMetadata as generateMeta } from '@payloadcms/next/pages/Logout'
|
||||||
import { Metadata } from 'next'
|
import { Metadata } from 'next'
|
||||||
import config from 'payload-config'
|
import config from '@payload-config'
|
||||||
|
|
||||||
export const generateMetadata = async (): Promise<Metadata> => generateMeta({ config })
|
export const generateMetadata = async (): Promise<Metadata> => generateMeta({ config })
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { Logout, generateMetadata as generateMeta } from '@payloadcms/next/pages/Logout'
|
import { Logout, generateMetadata as generateMeta } from '@payloadcms/next/pages/Logout'
|
||||||
import { Metadata } from 'next'
|
import { Metadata } from 'next'
|
||||||
import config from 'payload-config'
|
import config from '@payload-config'
|
||||||
|
|
||||||
export const generateMetadata = async (): Promise<Metadata> => generateMeta({ config })
|
export const generateMetadata = async (): Promise<Metadata> => generateMeta({ config })
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import {
|
|||||||
generateMetadata as generateMeta,
|
generateMetadata as generateMeta,
|
||||||
} from '@payloadcms/next/pages/ResetPassword'
|
} from '@payloadcms/next/pages/ResetPassword'
|
||||||
import { Metadata } from 'next'
|
import { Metadata } from 'next'
|
||||||
import config from 'payload-config'
|
import config from '@payload-config'
|
||||||
|
|
||||||
export const generateMetadata = async (): Promise<Metadata> => generateMeta({ config })
|
export const generateMetadata = async (): Promise<Metadata> => generateMeta({ config })
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { Unauthorized, generateMetadata as generateMeta } from '@payloadcms/next/pages/Unauthorized'
|
import { Unauthorized, generateMetadata as generateMeta } from '@payloadcms/next/pages/Unauthorized'
|
||||||
import { Metadata } from 'next'
|
import { Metadata } from 'next'
|
||||||
import config from 'payload-config'
|
import config from '@payload-config'
|
||||||
|
|
||||||
export const generateMetadata = async (): Promise<Metadata> => generateMeta({ config })
|
export const generateMetadata = async (): Promise<Metadata> => generateMeta({ config })
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { Verify, generateMetadata as generateMeta } from '@payloadcms/next/pages/Verify'
|
import { Verify, generateMetadata as generateMeta } from '@payloadcms/next/pages/Verify'
|
||||||
import { Metadata } from 'next'
|
import { Metadata } from 'next'
|
||||||
import config from 'payload-config'
|
import config from '@payload-config'
|
||||||
|
|
||||||
export const generateMetadata = async (): Promise<Metadata> => generateMeta({ config })
|
export const generateMetadata = async (): Promise<Metadata> => generateMeta({ config })
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
||||||
/* DO NOT MODIFY it because it could be re-written at any time. */
|
/* DO NOT MODIFY it because it could be re-written at any time. */
|
||||||
import config from 'payload-config'
|
import config from '@payload-config'
|
||||||
import { REST_GET, REST_DELETE, REST_PATCH, REST_POST } from '@payloadcms/next/routes'
|
import { REST_GET, REST_DELETE, REST_PATCH, REST_POST } from '@payloadcms/next/routes'
|
||||||
|
|
||||||
export const GET = REST_GET(config)
|
export const GET = REST_GET(config)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
||||||
/* DO NOT MODIFY it because it could be re-written at any time. */
|
/* DO NOT MODIFY it because it could be re-written at any time. */
|
||||||
import config from 'payload-config'
|
import config from '@payload-config'
|
||||||
import { GET_STATIC_FILE } from '@payloadcms/next/routes'
|
import { GET_STATIC_FILE } from '@payloadcms/next/routes'
|
||||||
|
|
||||||
export const GET = GET_STATIC_FILE(config)
|
export const GET = GET_STATIC_FILE(config)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
||||||
/* DO NOT MODIFY it because it could be re-written at any time. */
|
/* DO NOT MODIFY it because it could be re-written at any time. */
|
||||||
import config from 'payload-config'
|
import config from '@payload-config'
|
||||||
import { GRAPHQL_PLAYGROUND_GET } from '@payloadcms/next/routes'
|
import { GRAPHQL_PLAYGROUND_GET } from '@payloadcms/next/routes'
|
||||||
|
|
||||||
export const GET = GRAPHQL_PLAYGROUND_GET(config)
|
export const GET = GRAPHQL_PLAYGROUND_GET(config)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
||||||
/* DO NOT MODIFY it because it could be re-written at any time. */
|
/* DO NOT MODIFY it because it could be re-written at any time. */
|
||||||
import config from 'payload-config'
|
import config from '@payload-config'
|
||||||
import { GRAPHQL_POST } from '@payloadcms/next/routes'
|
import { GRAPHQL_POST } from '@payloadcms/next/routes'
|
||||||
|
|
||||||
export const POST = GRAPHQL_POST(config)
|
export const POST = GRAPHQL_POST(config)
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { RootLayout } from '@payloadcms/next/layouts/Root'
|
import { RootLayout } from '@payloadcms/next/layouts/Root'
|
||||||
import configPromise from 'payload-config'
|
import configPromise from '@payload-config'
|
||||||
|
|
||||||
export default async ({ children }: { children: React.ReactNode }) => (
|
export default async ({ children }: { children: React.ReactNode }) => (
|
||||||
<RootLayout config={configPromise}>{children}</RootLayout>
|
<RootLayout config={configPromise}>{children}</RootLayout>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
||||||
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
||||||
import { RootPage } from '@payloadcms/next/pages/Root'
|
import { RootPage } from '@payloadcms/next/pages/Root'
|
||||||
import config from 'payload-config'
|
import config from '@payload-config'
|
||||||
|
|
||||||
export default () => RootPage({ config })
|
export default () => RootPage({ config })
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
||||||
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
||||||
import { Account, generateMetadata as generateMeta } from '@payloadcms/next/pages/Account'
|
import { Account, generateMetadata as generateMeta } from '@payloadcms/next/pages/Account'
|
||||||
import config from 'payload-config'
|
import config from '@payload-config'
|
||||||
|
|
||||||
export const generateMetadata = async () => generateMeta({ config })
|
export const generateMetadata = async () => generateMeta({ config })
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { DocumentLayout } from '@payloadcms/next/layouts/Document'
|
import { DocumentLayout } from '@payloadcms/next/layouts/Document'
|
||||||
import configPromise from 'payload-config'
|
import configPromise from '@payload-config'
|
||||||
|
|
||||||
export default async ({ children, params }: { children: React.ReactNode; params }) => (
|
export default async ({ children, params }: { children: React.ReactNode; params }) => (
|
||||||
<DocumentLayout config={configPromise} collectionSlug={params.collection}>
|
<DocumentLayout config={configPromise} collectionSlug={params.collection}>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
||||||
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
||||||
import { Document, generateMetadata as generateMeta } from '@payloadcms/next/pages/Document'
|
import { Document, generateMetadata as generateMeta } from '@payloadcms/next/pages/Document'
|
||||||
import config from 'payload-config'
|
import config from '@payload-config'
|
||||||
|
|
||||||
export const generateMetadata = async ({ params }) => generateMeta({ config, params })
|
export const generateMetadata = async ({ params }) => generateMeta({ config, params })
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
||||||
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
||||||
import { ListView, generateMetadata as generateMeta } from '@payloadcms/next/pages/List'
|
import { ListView, generateMetadata as generateMeta } from '@payloadcms/next/pages/List'
|
||||||
import config from 'payload-config'
|
import config from '@payload-config'
|
||||||
|
|
||||||
export const generateMetadata = async ({ params }) => generateMeta({ config, params })
|
export const generateMetadata = async ({ params }) => generateMeta({ config, params })
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
||||||
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
||||||
import { Document, generateMetadata as generateMeta } from '@payloadcms/next/pages/Document'
|
import { Document, generateMetadata as generateMeta } from '@payloadcms/next/pages/Document'
|
||||||
import config from 'payload-config'
|
import config from '@payload-config'
|
||||||
|
|
||||||
export const generateMetadata = async ({ params }) => generateMeta({ config, params })
|
export const generateMetadata = async ({ params }) => generateMeta({ config, params })
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { DocumentLayout } from '@payloadcms/next/layouts/Document'
|
import { DocumentLayout } from '@payloadcms/next/layouts/Document'
|
||||||
import configPromise from 'payload-config'
|
import configPromise from '@payload-config'
|
||||||
|
|
||||||
export default async ({ children, params }: { children: React.ReactNode; params }) => (
|
export default async ({ children, params }: { children: React.ReactNode; params }) => (
|
||||||
<DocumentLayout config={configPromise} globalSlug={params.global}>
|
<DocumentLayout config={configPromise} globalSlug={params.global}>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { AdminLayout } from '@payloadcms/next/layouts/Admin'
|
import { AdminLayout } from '@payloadcms/next/layouts/Admin'
|
||||||
import configPromise from 'payload-config'
|
import configPromise from '@payload-config'
|
||||||
|
|
||||||
export default async ({ children }: { children: React.ReactNode }) => (
|
export default async ({ children }: { children: React.ReactNode }) => (
|
||||||
<AdminLayout config={configPromise}>{children}</AdminLayout>
|
<AdminLayout config={configPromise}>{children}</AdminLayout>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
||||||
import { Dashboard, generateMetadata as generateMeta } from '@payloadcms/next/pages/Dashboard'
|
import { Dashboard, generateMetadata as generateMeta } from '@payloadcms/next/pages/Dashboard'
|
||||||
import { Metadata } from 'next'
|
import { Metadata } from 'next'
|
||||||
import config from 'payload-config'
|
import config from '@payload-config'
|
||||||
|
|
||||||
export const generateMetadata = async (): Promise<Metadata> => generateMeta({ config })
|
export const generateMetadata = async (): Promise<Metadata> => generateMeta({ config })
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import {
|
|||||||
generateMetadata as generateMeta,
|
generateMetadata as generateMeta,
|
||||||
} from '@payloadcms/next/pages/CreateFirstUser'
|
} from '@payloadcms/next/pages/CreateFirstUser'
|
||||||
import { Metadata } from 'next'
|
import { Metadata } from 'next'
|
||||||
import config from 'payload-config'
|
import config from '@payload-config'
|
||||||
|
|
||||||
export const generateMetadata = async (): Promise<Metadata> => generateMeta({ config })
|
export const generateMetadata = async (): Promise<Metadata> => generateMeta({ config })
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import {
|
|||||||
generateMetadata as generateMeta,
|
generateMetadata as generateMeta,
|
||||||
} from '@payloadcms/next/pages/ForgotPassword'
|
} from '@payloadcms/next/pages/ForgotPassword'
|
||||||
import { Metadata } from 'next'
|
import { Metadata } from 'next'
|
||||||
import config from 'payload-config'
|
import config from '@payload-config'
|
||||||
|
|
||||||
export const generateMetadata = async (): Promise<Metadata> => generateMeta({ config })
|
export const generateMetadata = async (): Promise<Metadata> => generateMeta({ config })
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { Login, generateMetadata as generateMeta } from '@payloadcms/next/pages/Login'
|
import { Login, generateMetadata as generateMeta } from '@payloadcms/next/pages/Login'
|
||||||
import { Metadata } from 'next'
|
import { Metadata } from 'next'
|
||||||
import config from 'payload-config'
|
import config from '@payload-config'
|
||||||
|
|
||||||
export const generateMetadata = async (): Promise<Metadata> => generateMeta({ config })
|
export const generateMetadata = async (): Promise<Metadata> => generateMeta({ config })
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { Logout, generateMetadata as generateMeta } from '@payloadcms/next/pages/Logout'
|
import { Logout, generateMetadata as generateMeta } from '@payloadcms/next/pages/Logout'
|
||||||
import { Metadata } from 'next'
|
import { Metadata } from 'next'
|
||||||
import config from 'payload-config'
|
import config from '@payload-config'
|
||||||
|
|
||||||
export const generateMetadata = async (): Promise<Metadata> => generateMeta({ config })
|
export const generateMetadata = async (): Promise<Metadata> => generateMeta({ config })
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { Logout, generateMetadata as generateMeta } from '@payloadcms/next/pages/Logout'
|
import { Logout, generateMetadata as generateMeta } from '@payloadcms/next/pages/Logout'
|
||||||
import { Metadata } from 'next'
|
import { Metadata } from 'next'
|
||||||
import config from 'payload-config'
|
import config from '@payload-config'
|
||||||
|
|
||||||
export const generateMetadata = async (): Promise<Metadata> => generateMeta({ config })
|
export const generateMetadata = async (): Promise<Metadata> => generateMeta({ config })
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import {
|
|||||||
generateMetadata as generateMeta,
|
generateMetadata as generateMeta,
|
||||||
} from '@payloadcms/next/pages/ResetPassword'
|
} from '@payloadcms/next/pages/ResetPassword'
|
||||||
import { Metadata } from 'next'
|
import { Metadata } from 'next'
|
||||||
import config from 'payload-config'
|
import config from '@payload-config'
|
||||||
|
|
||||||
export const generateMetadata = async (): Promise<Metadata> => generateMeta({ config })
|
export const generateMetadata = async (): Promise<Metadata> => generateMeta({ config })
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { Unauthorized, generateMetadata as generateMeta } from '@payloadcms/next/pages/Unauthorized'
|
import { Unauthorized, generateMetadata as generateMeta } from '@payloadcms/next/pages/Unauthorized'
|
||||||
import { Metadata } from 'next'
|
import { Metadata } from 'next'
|
||||||
import config from 'payload-config'
|
import config from '@payload-config'
|
||||||
|
|
||||||
export const generateMetadata = async (): Promise<Metadata> => generateMeta({ config })
|
export const generateMetadata = async (): Promise<Metadata> => generateMeta({ config })
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { Verify, generateMetadata as generateMeta } from '@payloadcms/next/pages/Verify'
|
import { Verify, generateMetadata as generateMeta } from '@payloadcms/next/pages/Verify'
|
||||||
import { Metadata } from 'next'
|
import { Metadata } from 'next'
|
||||||
import config from 'payload-config'
|
import config from '@payload-config'
|
||||||
|
|
||||||
export const generateMetadata = async (): Promise<Metadata> => generateMeta({ config })
|
export const generateMetadata = async (): Promise<Metadata> => generateMeta({ config })
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
||||||
/* DO NOT MODIFY it because it could be re-written at any time. */
|
/* DO NOT MODIFY it because it could be re-written at any time. */
|
||||||
import config from 'payload-config'
|
import config from '@payload-config'
|
||||||
import { REST_GET, REST_DELETE, REST_PATCH, REST_POST } from '@payloadcms/next/routes'
|
import { REST_GET, REST_DELETE, REST_PATCH, REST_POST } from '@payloadcms/next/routes'
|
||||||
|
|
||||||
export const GET = REST_GET(config)
|
export const GET = REST_GET(config)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
||||||
/* DO NOT MODIFY it because it could be re-written at any time. */
|
/* DO NOT MODIFY it because it could be re-written at any time. */
|
||||||
import config from 'payload-config'
|
import config from '@payload-config'
|
||||||
import { GET_STATIC_FILE } from '@payloadcms/next/routes'
|
import { GET_STATIC_FILE } from '@payloadcms/next/routes'
|
||||||
|
|
||||||
export const GET = GET_STATIC_FILE(config)
|
export const GET = GET_STATIC_FILE(config)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
||||||
/* DO NOT MODIFY it because it could be re-written at any time. */
|
/* DO NOT MODIFY it because it could be re-written at any time. */
|
||||||
import config from 'payload-config'
|
import config from '@payload-config'
|
||||||
import { GRAPHQL_PLAYGROUND_GET } from '@payloadcms/next/routes'
|
import { GRAPHQL_PLAYGROUND_GET } from '@payloadcms/next/routes'
|
||||||
|
|
||||||
export const GET = GRAPHQL_PLAYGROUND_GET(config)
|
export const GET = GRAPHQL_PLAYGROUND_GET(config)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
||||||
/* DO NOT MODIFY it because it could be re-written at any time. */
|
/* DO NOT MODIFY it because it could be re-written at any time. */
|
||||||
import config from 'payload-config'
|
import config from '@payload-config'
|
||||||
import { GRAPHQL_POST } from '@payloadcms/next/routes'
|
import { GRAPHQL_POST } from '@payloadcms/next/routes'
|
||||||
|
|
||||||
export const POST = GRAPHQL_POST(config)
|
export const POST = GRAPHQL_POST(config)
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { RootLayout } from '@payloadcms/next/layouts/Root'
|
import { RootLayout } from '@payloadcms/next/layouts/Root'
|
||||||
import configPromise from 'payload-config'
|
import configPromise from '@payload-config'
|
||||||
|
|
||||||
export default async ({ children }: { children: React.ReactNode }) => (
|
export default async ({ children }: { children: React.ReactNode }) => (
|
||||||
<RootLayout config={configPromise}>{children}</RootLayout>
|
<RootLayout config={configPromise}>{children}</RootLayout>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
||||||
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
||||||
import { RootPage } from '@payloadcms/next/pages/Root'
|
import { RootPage } from '@payloadcms/next/pages/Root'
|
||||||
import config from 'payload-config'
|
import config from '@payload-config'
|
||||||
|
|
||||||
export default () => RootPage({ config })
|
export default () => RootPage({ config })
|
||||||
|
|||||||
Reference in New Issue
Block a user