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 11import { gql } from '@apollo/client'
2- import { singlePageFragment } from './queryPageById'
32import defaultPageData from '../_partials/defaultPageData'
3+ import { singlePageFragment } from './queryPageById'
44
55// Query: retrieve 404 error page.
66const queryError404Page = gql `
77 query GET_ERROR_404_PAGE($imageSize: MediaItemSizeEnum = LARGE) {
88 ${ defaultPageData }
9- additionalSettings {
9+ headlessConfig {
1010 additionalSettings {
11- page: error404Page {
11+ error404Page {
1212 ... on Page {
1313 ...SinglePageFields
1414 }
Original file line number Diff line number Diff line change 11import getPostTypeStaticProps from '@/api/wordpress/_global/getPostTypeStaticProps'
2+ import Container from '@/components/atoms/Container'
23import Layout from '@/components/common/Layout'
34import getPagePropTypes from '@/functions/getPagePropTypes'
45import Page from './[...slug]'
5- import Container from '@/components/atoms/Container'
66
77// Define route post type.
88const postType = 'page'
@@ -46,7 +46,7 @@ export default function Custom404({post}) {
4646 * @return {object } Post props.
4747 */
4848export async function getStaticProps ( ) {
49- return await getPostTypeStaticProps ( { slug : '404' } , postType )
49+ return await getPostTypeStaticProps ( { slug : '404-not-found ' } , postType )
5050}
5151
5252Custom404 . propTypes = {
You can’t perform that action at this time.
0 commit comments