Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

158
Vistas
Can you create a default route in Next.js

Is it were possible to have default routes in Next.js so all routes or a whitelist of routes will all go to a specific page.

For my project the idea is to use Next.js to build the marketing website, sign up and sign in process, and then to have a Next.js page that would boot up an SPA (probably using create-react-app and react-router) so that any route which isn't a Next.js page would assume that instead its a route in the SPA and would therefore direct to that page which would boot up the SPA

about 4 years ago · Santiago Gelvez
1 Respuestas
Responde la pregunta

0

One way that seems to work is to create a custom 404 page. https://nextjs.org/docs/advanced-features/custom-error-page

Every route that is not a recognised next.js route will call this page, but will not redirect (change the browser URL) which is exactly what's wanted when booting up an SPA.

about 4 years ago · Santiago Gelvez Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda