Skip to content

next-auth static output 的解决方案 #46

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
MarkShawn2020 opened this issue Jun 30, 2024 · 0 comments
Open

next-auth static output 的解决方案 #46

MarkShawn2020 opened this issue Jun 30, 2024 · 0 comments

Comments

@MarkShawn2020
Copy link
Member

MarkShawn2020 commented Jun 30, 2024

tauri 要求 nextjs 采用 static output (也就是 output=export),这导致 next-auth 的动态路由 projects-01-swot/frontend/src/app/api/auth/[...nextauth]/route.ts 必须加上 generateStaticParams 才行 (但我加了也没用),需要解决方案。

考虑到类似 tauri 或者 electron 等需要静态编译的场景是大概率需要的,因此可能的一种方案是放弃 next-auth,暂时还不确定有没有兼容的办法……

相关参考链接:

@MarkShawn2020 MarkShawn2020 changed the title tauri + next-auth 的解决方案 next-auth static output 的解决方案 Jun 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant