Questions tagged [404-page]

154 questions
5
votes
4 answers

Redirect to 404 when custom [slug] is not found in Next JS

I'm surprised I can't find this anyway but here is my issue. I have a Next JS site with the path /location/[location].js The page looks pretty basic import { nodes } from '../../components/data/nodes' export default function Location() { const…
MomasVII
  • 4,641
  • 5
  • 35
  • 52
3
votes
1 answer

404 Page not found Vercel Deployment - using dynamic routing in Next JS

I am making a full-stack web-application using Next JS where I allow the user to create and manage letters (applications) based on pre-defined templates. So when the user successfully creates an application, it is sent to the database (POSTGRES)…
Sounav Saha
  • 75
  • 1
  • 7
3
votes
1 answer

notFound: true not redirecting to 404 page on failed axios request

I'm using Axios to access a simple API. I want to redirect the user to the built-in Next.js 404 page if the request fails with a 404 error. I'm using the notFound boolean set to true in the event the request status is 404. There are 10 users on the…
Robbyo
  • 51
  • 3
3
votes
1 answer

Svelte return 404 error Not found: /signup Error: Not found: /signup

My project is returning this annoying 404 error when I click on sign up page. No idea what could be. My main page with the login form, its this one below: