Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

131
Views
nextJS captura todas las rutas con páginas generadas estáticamente no funciona

Repo aquí: https://github.com/Chenzo/nextjs-fallback
Página de ejemplo aquí: https://chenzo.github.io/nextjs-fallback

Tengo un proyecto nextJS configurado así:

 /pages /things [thing].js [[...anything]].js

Se generan 2 páginas a partir de algunos datos simples usando la plantilla [thing].js

https://chenzo.github.io/nextjs-fallback/things/onething
https://chenzo.github.io/nextjs-fallback/things/thingtwo

hay un enlace a una tercera página inexistente /things/thirdthing que va a la página 404. Pero hay un CUARTO pensamiento que va a /things/thirdthing/what que va a la página [[...anything]].js.

Entiendo que la llamada inicial tiene que aterrizar en una página que tiene la aplicación nextjs/react ejecutándose, pero desde la página de inicio, el tercer enlace debe ir a cualquier cosa, ¿sí? ¿Por qué solo captura el cuarto enlace?

tenemos un montón de "cosas" renderizadas previamente, pero luego existe la posibilidad de miles de "cosas" que se pueden vincular, y podemos simplemente ajax para ellas, pero tal vez estoy haciendo esto mal.

Quiero, si se genera estáticamente, usar [thing].js si no, usar [[...anything]].js

Gracias por tu tiempo.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!