Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Commit 4d340c1

Browse files
committed
Change slug to string
1 parent e52a508 commit 4d340c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/404.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default function Custom404({post}) {
3737
* @return {object} Post props.
3838
*/
3939
export async function getStaticProps() {
40-
return await getPostTypeStaticProps({slug: 404}, postType)
40+
return await getPostTypeStaticProps({slug: '404'}, postType)
4141
}
4242

4343
Custom404.propTypes = {

0 commit comments

Comments
 (0)