Skip to content

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

@MarkShawn2020

Description

@MarkShawn2020

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

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

相关参考链接:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions