refactor: update config import paths to use local payload.config
This commit is contained in:
@@ -2,8 +2,8 @@
|
|||||||
/* 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 type { Metadata } from 'next';
|
import type { Metadata } from 'next';
|
||||||
|
|
||||||
import config from '@payload-config';
|
|
||||||
import { NotFoundPage, generatePageMetadata } from '@payloadcms/next/views';
|
import { NotFoundPage, generatePageMetadata } from '@payloadcms/next/views';
|
||||||
|
import config from '../../../../payload.config';
|
||||||
import { importMap } from '../importMap';
|
import { importMap } from '../importMap';
|
||||||
|
|
||||||
type Args = {
|
type Args = {
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
/* 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 type { Metadata } from 'next';
|
import type { Metadata } from 'next';
|
||||||
|
|
||||||
import config from '@payload-config';
|
|
||||||
import { RootPage, generatePageMetadata } from '@payloadcms/next/views';
|
import { RootPage, generatePageMetadata } from '@payloadcms/next/views';
|
||||||
|
import config from '../../../../payload.config';
|
||||||
import { importMap } from '../importMap';
|
import { importMap } from '../importMap';
|
||||||
|
|
||||||
type Args = {
|
type Args = {
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
/* 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 config from '@payload-config';
|
|
||||||
import '@payloadcms/next/css';
|
import '@payloadcms/next/css';
|
||||||
import {
|
import {
|
||||||
REST_DELETE,
|
REST_DELETE,
|
||||||
@@ -10,6 +9,7 @@ import {
|
|||||||
REST_POST,
|
REST_POST,
|
||||||
REST_PUT,
|
REST_PUT,
|
||||||
} from '@payloadcms/next/routes';
|
} from '@payloadcms/next/routes';
|
||||||
|
import config from '../../../../payload.config';
|
||||||
|
|
||||||
export const GET = REST_GET(config);
|
export const GET = REST_GET(config);
|
||||||
export const POST = REST_POST(config);
|
export const POST = REST_POST(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 config from '@payload-config';
|
|
||||||
import '@payloadcms/next/css';
|
import '@payloadcms/next/css';
|
||||||
import { GRAPHQL_PLAYGROUND_GET } from '@payloadcms/next/routes';
|
import { GRAPHQL_PLAYGROUND_GET } from '@payloadcms/next/routes';
|
||||||
|
import config from '../../../../payload.config';
|
||||||
|
|
||||||
export const GET = GRAPHQL_PLAYGROUND_GET(config);
|
export const GET = GRAPHQL_PLAYGROUND_GET(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 config from '@payload-config';
|
|
||||||
import { GRAPHQL_POST, REST_OPTIONS } from '@payloadcms/next/routes';
|
import { GRAPHQL_POST, REST_OPTIONS } from '@payloadcms/next/routes';
|
||||||
|
import config from '../../../../payload.config';
|
||||||
|
|
||||||
export const POST = GRAPHQL_POST(config);
|
export const POST = GRAPHQL_POST(config);
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
/* 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 config from '@payload-config';
|
|
||||||
import '@payloadcms/next/css';
|
import '@payloadcms/next/css';
|
||||||
import { handleServerFunctions, RootLayout } from '@payloadcms/next/layouts';
|
import { handleServerFunctions, RootLayout } from '@payloadcms/next/layouts';
|
||||||
import type { ServerFunctionClient } from 'payload';
|
import type { ServerFunctionClient } from 'payload';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
import config from '../../payload.config';
|
||||||
|
|
||||||
import { importMap } from './admin/importMap.js';
|
import { importMap } from './admin/importMap.js';
|
||||||
import './custom.scss';
|
import './custom.scss';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import config from '@payload-config';
|
|
||||||
import { getPayload } from 'payload';
|
import { getPayload } from 'payload';
|
||||||
|
import config from '../payload.config';
|
||||||
|
|
||||||
export const payload = await getPayload({ config });
|
export const payload = await getPayload({ config });
|
||||||
|
|||||||
+1
-2
@@ -24,8 +24,7 @@
|
|||||||
"@imphnen-frontend-service/ui/organisms": [
|
"@imphnen-frontend-service/ui/organisms": [
|
||||||
"libs/ui/src/organisms/index.ts"
|
"libs/ui/src/organisms/index.ts"
|
||||||
],
|
],
|
||||||
"@imphnen-frontend-service/utils": ["libs/utils/src/index.ts"],
|
"@imphnen-frontend-service/utils": ["libs/utils/src/index.ts"]
|
||||||
"@payload-config": ["apps/landing/src/payload.config.ts"],
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"exclude": ["node_modules", "tmp"]
|
"exclude": ["node_modules", "tmp"]
|
||||||
|
|||||||
Reference in New Issue
Block a user