File tree Expand file tree Collapse file tree 4 files changed +16
-22
lines changed
Expand file tree Collapse file tree 4 files changed +16
-22
lines changed Original file line number Diff line number Diff line change 77 "start" : " next start" ,
88 "lint" : " eslint ." ,
99 "lint:fix" : " eslint . --fix" ,
10- "postbuild" : " pagefind --site .next/server/app --output-path out /_pagefind"
10+ "postbuild" : " pagefind --site .next/server/app --output-path public /_pagefind && cp out/404/index.html out/404.html "
1111 },
1212 "dependencies" : {
1313 "@commitlint/cli" : " ^20.3.0" ,
Original file line number Diff line number Diff line change 1+ import NotFoundCanvas from '@/components/NotFoundCanvas' ;
2+
3+ export default function NotFound ( ) {
4+ return (
5+ < div style = { { textAlign : 'center' , padding : '2rem' } } >
6+ < h1 > Page not found</ h1 >
7+ < p > Sorry, that page does not exist.</ p >
8+ < div style = { { maxWidth : '800px' , margin : '0 auto' } } >
9+ < NotFoundCanvas />
10+ </ div >
11+ </ div >
12+ ) ;
13+ }
Original file line number Diff line number Diff line change 1- import NotFoundCanvas from '@/components/NotFoundCanvas ' ;
1+ import NotFound from '@/app/404/page ' ;
22
3- export default function NotFound ( ) {
4- return (
5- < div style = { { textAlign : 'center' , padding : '2rem' } } >
6- < h1 > Page not found</ h1 >
7- < p > Sorry, that page does not exist.</ p >
8- < div style = { { maxWidth : '800px' , margin : '0 auto' } } >
9- < NotFoundCanvas />
10- </ div >
11- </ div >
12- ) ;
13- }
3+ export default NotFound ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments