Skip to content

Commit e4a6282

Browse files
committed
chore(dev): Update payload files
1 parent 4dcdf8f commit e4a6282

File tree

6 files changed

+45
-44
lines changed

6 files changed

+45
-44
lines changed
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
2-
import type { Metadata } from "next";
3-
4-
import config from "@payload-config";
52
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
6-
import { NotFoundPage, generatePageMetadata } from "@payloadcms/next/views";
7-
import { importMap } from "../importMap";
3+
import type { Metadata } from 'next'
4+
5+
import config from '@payload-config'
6+
import { NotFoundPage, generatePageMetadata } from '@payloadcms/next/views'
7+
import { importMap } from '../importMap'
88

99
type Args = {
10-
params: {
11-
segments: string[];
12-
};
13-
searchParams: {
14-
[key: string]: string | string[];
15-
};
16-
};
10+
params: Promise<{
11+
segments: string[]
12+
}>
13+
searchParams: Promise<{
14+
[key: string]: string | string[]
15+
}>
16+
}
1717

1818
export const generateMetadata = ({ params, searchParams }: Args): Promise<Metadata> =>
19-
generatePageMetadata({ config, params, searchParams });
19+
generatePageMetadata({ config, params, searchParams })
2020

2121
const NotFound = ({ params, searchParams }: Args) =>
22-
NotFoundPage({ config, params, searchParams, importMap });
22+
NotFoundPage({ config, params, searchParams, importMap })
2323

24-
export default NotFound;
24+
export default NotFound
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
2-
import type { Metadata } from "next";
3-
4-
import config from "@payload-config";
52
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
6-
import { RootPage, generatePageMetadata } from "@payloadcms/next/views";
7-
import { importMap } from "../importMap";
3+
import type { Metadata } from 'next'
4+
5+
import config from '@payload-config'
6+
import { RootPage, generatePageMetadata } from '@payloadcms/next/views'
7+
import { importMap } from '../importMap'
88

99
type Args = {
10-
params: {
11-
segments: string[];
12-
};
13-
searchParams: {
14-
[key: string]: string | string[];
15-
};
16-
};
10+
params: Promise<{
11+
segments: string[]
12+
}>
13+
searchParams: Promise<{
14+
[key: string]: string | string[]
15+
}>
16+
}
1717

1818
export const generateMetadata = ({ params, searchParams }: Args): Promise<Metadata> =>
19-
generatePageMetadata({ config, params, searchParams });
19+
generatePageMetadata({ config, params, searchParams })
2020

2121
const Page = ({ params, searchParams }: Args) =>
22-
RootPage({ config, params, searchParams, importMap });
22+
RootPage({ config, params, searchParams, importMap })
2323

24-
export default Page;
24+
export default Page
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
2-
/* DO NOT MODIFY it because it could be re-written at any time. */
2+
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
33
import config from '@payload-config'
4-
import { REST_DELETE, REST_GET, REST_PATCH, REST_POST } from '@payloadcms/next/routes'
4+
import { REST_DELETE, REST_GET, REST_OPTIONS, REST_PATCH, REST_POST } from '@payloadcms/next/routes'
55

66
export const GET = REST_GET(config)
77
export const POST = REST_POST(config)
88
export const DELETE = REST_DELETE(config)
99
export const PATCH = REST_PATCH(config)
10+
export const OPTIONS = REST_OPTIONS(config)

dev/src/app/(payload)/api/graphql-playground/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
2-
/* DO NOT MODIFY it because it could be re-written at any time. */
2+
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
33
import config from '@payload-config'
44
import { GRAPHQL_PLAYGROUND_GET } from '@payloadcms/next/routes'
55

dev/src/app/(payload)/api/graphql/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
2-
/* DO NOT MODIFY it because it could be re-written at any time. */
2+
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
33
import config from '@payload-config'
44
import { GRAPHQL_POST } from '@payloadcms/next/routes'
55

dev/src/app/(payload)/layout.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
2-
import configPromise from "@payload-config";
3-
import "@payloadcms/next/css";
4-
import { RootLayout } from "@payloadcms/next/layouts";
52
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
6-
import React from "react";
3+
import configPromise from '@payload-config'
4+
import '@payloadcms/next/css'
5+
import { RootLayout } from '@payloadcms/next/layouts'
6+
import React from 'react'
77

8-
import { importMap } from "./admin/importMap";
9-
import "./custom.scss";
8+
import './custom.scss'
9+
import { importMap } from './admin/importMap'
1010

1111
type Args = {
12-
children: React.ReactNode;
13-
};
12+
children: React.ReactNode
13+
}
1414

1515
const Layout = ({ children }: Args) => (
1616
<RootLayout importMap={importMap} config={configPromise}>
1717
{children}
1818
</RootLayout>
19-
);
19+
)
2020

21-
export default Layout;
21+
export default Layout

0 commit comments

Comments
 (0)