Next.js Discord

Discord Forum

Create navbar dynamically using server actions

Unanswered
Horse guard wasp posted this in #help-forum
Open in Discord
Avatar
Horse guard waspOP
Hello, I would like to create my navbar dynamically using server actions, I have all my routes like so : ["/dev/[slug]", "/dev/", "/"] already knew in my client component using this : https://github.com/Emiyaaaaa/next-routes-list, but i want to get all the pages under [slug]... So I already have functions server-side to handle this that fetch all my markdown files generated, but how can I handle it and call it from a client component ? I think I'm missing something from the documentation...

Thank you ! 😁

0 Replies