Skip to content

chore: 删掉 NextAuth 残留依赖和文件 - #403

Merged
longsizhuo merged 1 commit into
mainfrom
chore/remove-nextauth-leftovers
Oct 18, 2026
Merged

longsizhuo merged 1 commit into
mainfrom
chore/remove-nextauth-leftovers

Conversation

@longsizhuo

Copy link
Copy Markdown
Member

认证早已迁到后端 Sa-Token,前端代码里已经没有任何 next-auth / @auth/* 的引用(git grep 只命中 package.json、这份 README 和示例环境变量)。

  • 移除依赖 next-auth、@auth/prisma-adapter,lockfile 同步。@types/node 在 package.json 里写的是 "latest",重新解析时顺带从 26.2.0 升到 26.6.5(同一个大版本,交给 CI 的 typecheck 把关)
  • 删除 app/api/auth/[...nextauth]/README.md:它描述的路由早就不存在了
  • 删除 sql/nextauth_schema.sql:没有任何地方引用
  • .env.sample 去掉前端不读的 AUTH_GITHUB_* / AUTH_SECRET / AUTH_TRUST_HOST / AUTH_URL,这些是后端的配置

prisma/schema.prisma 里的 legacy 表按 CLAUDE.md 的约定保留不动。生产库里这些表残留的 GitHub access token 已经另外清空。

🤖 Generated with Claude Code

认证早已迁到后端 Sa-Token,代码里已经没有任何 next-auth / @auth/* 的引用:
- package.json 移除 next-auth、@auth/prisma-adapter(lockfile 同步;@types/node 写的是
  "latest",重新解析顺带从 26.2.0 到 26.6.5)
- 删 app/api/auth/[...nextauth]/README.md(描述的路由早就不存在)和 sql/nextauth_schema.sql(无引用)
- .env.sample 去掉前端不读的 AUTH_GITHUB_* / AUTH_SECRET / AUTH_TRUST_HOST / AUTH_URL

prisma/schema.prisma 里的 legacy 表按 CLAUDE.md 保留不动。
@vercel

vercel Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
involutionhell-github-io Ready Ready Preview Oct 18, 2026 3:00pm UTC
website-preview Ready Ready Preview Oct 18, 2026 3:00pm UTC

@longsizhuo
longsizhuo merged commit 6c5d1c8 into main Oct 18, 2026
9 checks passed
@longsizhuo
longsizhuo deleted the chore/remove-nextauth-leftovers branch October 18, 2026 18:39

This branch was successfully deployed

2 active deployments
Preview – involutionhell-github-io — c530719f Deployed Oct 18, 2026 by vercel[bot]
Preview – website-preview — c530719f Deployed Oct 18, 2026 by vercel[bot]
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

Successfully merging this pull request may close these issues.

1 participant