Use without SSR #2687
-
We have a separate API that handles all data, as well as user creation etc. We're planning to deploy our Next.js app as a SPA / static site, and don't plan to have any server running for the backend. Is it possible to use next-auth without having a Next server running? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
SSR means server-side rendering, and I'll assume this is not what you actually meant. If you talk about static export, then no, it is not. NextAuth.js relies on a secure backend being available at runtime, like Next.js API routes. There are plans to support other frameworks #2294, and someone already got |
Beta Was this translation helpful? Give feedback.
SSR means server-side rendering, and I'll assume this is not what you actually meant.
If you talk about static export, then no, it is not. NextAuth.js relies on a secure backend being available at runtime, like Next.js API routes.
There are plans to support other frameworks #2294, and someone already got
next-auth
working with Express-like backends. Check the issue for more info.