![]() If you’re hosting your site another way you’ll need to set up a custom rule to serve this file for 404 errors.īecause Gatsby creates this page for you by default, there is no need to configure it in your gatsby-node.js file. Gatsby ensures that your 404 page is built as 404.html as many static hosting platforms default to using this as your 404 error page. To create a 404 page create a page whose path matches the regex ^/?404/?$ ( /404/, /404, 404/ or 404), most often you’ll want to create a React component page at src/pages/404.js.
0 Comments
Leave a Reply. |