Next.js Discord

Discord Forum

Building a Static Export (SSG) with variable based path

Unanswered
Mountain Quail posted this in #help-forum
Open in Discord
Mountain QuailOP
Hello, I'd like to build a SSG with a backoffice calling my APIs. The auth is done with an OAuth2 dance with the API. Once I get the JWT token I'm able to fetch the list of organisation related to my logged-in user and to process with the dislay of the app and sub-objects per organizations.

However when trying to build a Static Export of my Next.JS app, it requires a list of organizations (that are coming from an API), do you know if we can keep it a placeholder all the way to the static SPA or should we use a server side NextJS app in this case and forget about a SPA built with Next.JS?

0 Replies