Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

500 au lieu d'une 404 #26

Closed
agravelot opened this issue Mar 1, 2021 · 1 comment
Closed

500 au lieu d'une 404 #26

agravelot opened this issue Mar 1, 2021 · 1 comment
Labels
bug Something isn't working frontend good first issue Good for newcomers

Comments

@agravelot
Copy link
Owner

agravelot commented Mar 1, 2021

https://jkanda.fr/albums/dazeaze

Lorsqu'une page n'a pas était rendu la du build du site, grâce (ou à cause) du fallback = true, et bien next va essayer de build la page à la volé. Ce qui est top lors de l'ajout de nouvelles pages (nouvel album). Mais lorsque aucun résultat n'est trouvé est bien ça fait boom !
Manque de gestion des erreurs dans le getStaticProps, dû à l'ajout du revalidate et fallback

Pour tester en local, /albums/je-suis-pas-la

Ce problème est sur toutes les pages avec fallback

pistes : vercel/next.js#17755
https://nextjs.org/docs/basic-features/data-fetching#getstaticprops-static-generation
notFound

@agravelot agravelot added bug Something isn't working frontend good first issue Good for newcomers labels Mar 1, 2021
@agravelot
Copy link
Owner Author

Corriger par : d91dded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working frontend good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant