You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 28, 2025. It is now read-only.
pages are generated in s3 on this folder[static-pages/{**}.html and _next/data/{id}/*.json] build time only
when I open url like page/3 in my browser it's always show me loading state then comes up main content and this page is not being generated in s3
functionPost({ post }){constrouter=useRouter()if(router.isFallback){return<div>Loading...</div>}// Render post...}// This function gets called at build timeexportasyncfunctiongetStaticPaths(){return{// Only `/posts/1` and `/posts/2` are generated at build timepaths: [{params: {id: '1'}},{params: {id: '2'}}],// Enable statically generating additional pages// For example: `/posts/3`fallback: true,}}// This also gets called at build timeexportasyncfunctiongetStaticProps({ params }){constres=awaitfetch(`https://.../posts/${params.id}`)constpost=awaitres.json()return{props: { post },revalidate: 5,}}exportdefaultPost