I have an astrojs
project with the following structure.
pages/
|- index.astro
|- blog/index.astro
|- blog/[slug].astro
|- blog/[page].astro
Since the project is not static, I render in SSR mode. Since I am a beginner in this subject, I learn everything by doing and trying. Most things look and work pretty well now, but I just can’t seem to get the pagination done.
The examples I’ve seen are all prepared in SSG
mode because they always include getStaticPaths
. However, if you use getStaticPaths
in SSR
mode, you’ll get some kind of warning that it doesn’t work and is excluded.
In this case, I couldn’t figure out how to do pagination.
[If more details about what I did and the codes are needed for the solution, I will provide them. I didn’t add it to avoid confusing you.]