Answers for "next js custom 404 page"

18

next js custom 404 page

just create a file "404.js" in pages folder.

// pages/404.js
export default function Custom404() {
  return <h1>404 - Page Not Found</h1>
}
Posted by: Guest on July-05-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language