Next.js Discord

Discord Forum

Dynamically finding all static pages?

Unanswered
Morelet’s Crocodile posted this in #help-forum
Open in Discord
Morelet’s CrocodileOP
I am creating a static portfolio website where I am creating a static page for each of my projects (by creating subfolders in /src/app/projects/). I want to add a component at the end of each of my project pages to show the thumbnails of other projects (all but excluding the current one). Is there a way I can dynamically find all the static project pages in /src/app/projects and generate a component in each page showing the other pages?

0 Replies