-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(templates): updates payload app files (#6172)
- Loading branch information
1 parent
1c490ae
commit 04f1df8
Showing
4 changed files
with
30 additions
and
3 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
templates/blank-3.0/src/app/(payload)/admin/[[...segments]]/not-found.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */ | ||
import type { Metadata } from 'next' | ||
|
||
import config from '@payload-config' | ||
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */ | ||
import { NotFoundPage, generatePageMetadata } from '@payloadcms/next/views' | ||
|
||
type Args = { | ||
params: { | ||
segments: string[] | ||
} | ||
searchParams: { | ||
[key: string]: string | string[] | ||
} | ||
} | ||
|
||
export const generateMetadata = ({ params, searchParams }: Args): Promise<Metadata> => | ||
generatePageMetadata({ config, params, searchParams }) | ||
|
||
const NotFound = ({ params, searchParams }: Args) => NotFoundPage({ config, params, searchParams }) | ||
|
||
export default NotFound |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */ | ||
/* DO NOT MODIFY it because it could be re-written at any time. */ | ||
import config from '@payload-config' | ||
import { REST_DELETE, REST_GET, REST_PATCH, REST_POST } from '@payloadcms/next/routes' | ||
import { REST_DELETE, REST_GET, REST_OPTIONS, REST_PATCH, REST_POST } from '@payloadcms/next/routes' | ||
|
||
export const GET = REST_GET(config) | ||
export const POST = REST_POST(config) | ||
export const DELETE = REST_DELETE(config) | ||
export const PATCH = REST_PATCH(config) | ||
export const OPTIONS = REST_OPTIONS(config) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters