This repository was archived by the owner on Feb 27, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
import { gql } from '@apollo/client'
2
- import { singlePageFragment } from './queryPageById'
3
2
import defaultPageData from '../_partials/defaultPageData'
3
+ import { singlePageFragment } from './queryPageById'
4
4
5
5
// Query: retrieve 404 error page.
6
6
const queryError404Page = gql `
7
7
query GET_ERROR_404_PAGE($imageSize: MediaItemSizeEnum = LARGE) {
8
8
${ defaultPageData }
9
- additionalSettings {
9
+ headlessConfig {
10
10
additionalSettings {
11
- page: error404Page {
11
+ error404Page {
12
12
... on Page {
13
13
...SinglePageFields
14
14
}
Original file line number Diff line number Diff line change 1
1
import getPostTypeStaticProps from '@/api/wordpress/_global/getPostTypeStaticProps'
2
+ import Container from '@/components/atoms/Container'
2
3
import Layout from '@/components/common/Layout'
3
4
import getPagePropTypes from '@/functions/getPagePropTypes'
4
5
import Page from './[...slug]'
5
- import Container from '@/components/atoms/Container'
6
6
7
7
// Define route post type.
8
8
const postType = 'page'
@@ -46,7 +46,7 @@ export default function Custom404({post}) {
46
46
* @return {object } Post props.
47
47
*/
48
48
export async function getStaticProps ( ) {
49
- return await getPostTypeStaticProps ( { slug : '404' } , postType )
49
+ return await getPostTypeStaticProps ( { slug : '404-not-found ' } , postType )
50
50
}
51
51
52
52
Custom404 . propTypes = {
You can’t perform that action at this time.
0 commit comments