chore: corrects imports

This commit is contained in:
James
2024-04-09 12:43:36 -04:00
parent 783dae2bbb
commit 3acfb7a83f
8 changed files with 8 additions and 11 deletions

View File

@@ -3,7 +3,7 @@ import type { Metadata } from 'next'
import config from '@payload-config' import config from '@payload-config'
/* 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 { NotFoundPage, generatePageMetadata } from '@payloadcms/next/views.js' import { NotFoundPage, generatePageMetadata } from '@payloadcms/next/views'
type Args = { type Args = {
params: { params: {

View File

@@ -3,7 +3,7 @@ import type { Metadata } from 'next'
import config from '@payload-config' import config from '@payload-config'
/* 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, generatePageMetadata } from '@payloadcms/next/views.js' import { RootPage, generatePageMetadata } from '@payloadcms/next/views'
type Args = { type Args = {
params: { params: {

View File

@@ -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 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_DELETE, REST_GET, REST_PATCH, REST_POST } from '@payloadcms/next/routes.js' import { REST_DELETE, REST_GET, REST_PATCH, REST_POST } from '@payloadcms/next/routes'
export const GET = REST_GET(config) export const GET = REST_GET(config)
export const POST = REST_POST(config) export const POST = REST_POST(config)

View File

@@ -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.js' import { GRAPHQL_PLAYGROUND_GET } from '@payloadcms/next/routes'
export const GET = GRAPHQL_PLAYGROUND_GET(config) export const GET = GRAPHQL_PLAYGROUND_GET(config)

View File

@@ -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.js' import { GRAPHQL_POST } from '@payloadcms/next/routes'
export const POST = GRAPHQL_POST(config) export const POST = GRAPHQL_POST(config)

View File

@@ -1,6 +1,6 @@
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */ /* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
import configPromise from '@payload-config' import configPromise from '@payload-config'
import { RootLayout } from '@payloadcms/next/layouts.js' import { RootLayout } from '@payloadcms/next/layouts'
/* 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'

View File

@@ -41,10 +41,7 @@
"@payloadcms/ui/scss/app.scss": ["../packages/ui/src/scss/app.scss"], "@payloadcms/ui/scss/app.scss": ["../packages/ui/src/scss/app.scss"],
"payload/types": ["../packages/payload/src/exports/types/index.ts"], "payload/types": ["../packages/payload/src/exports/types/index.ts"],
"@payloadcms/next/*": [ "@payloadcms/next/*": [
"./packages/next/src/exports/*" "./packages/next/src/exports/*.ts"
],
"@payloadcms/next": [
"./packages/next/src/exports/*"
], ],
"@payload-config": ["./_community/config.ts"] "@payload-config": ["./_community/config.ts"]
} }

View File

@@ -82,7 +82,7 @@
"./packages/ui/src/scss/app.scss" "./packages/ui/src/scss/app.scss"
], ],
"@payloadcms/next/*": [ "@payloadcms/next/*": [
"./packages/next/src/*" "./packages/next/src/exports/*.ts"
], ],
"@payloadcms/next": [ "@payloadcms/next": [
"./packages/next/src/exports/*" "./packages/next/src/exports/*"