Refactor authentication system: replace NextAuth with custom login/logout/session handling, improve cookie management, and enhance error handling
Build and Push Reader Image / docker (push) Successful in 39s

This commit is contained in:
2026-04-24 01:53:32 +07:00
parent 690a2fbd51
commit 7c4404ded8
26 changed files with 368 additions and 239 deletions
-7
View File
@@ -3,13 +3,6 @@ const readerApiOrigin = (process.env.READER_API_ORIGIN || "http://localhost:8000
const nextConfig = {
output: "standalone",
// Tắt HTTP keep-alive để tránh stale connection tới Google OAuth.
// Sau lần đăng nhập đầu, Node.js giữ TCP socket tới oauth2.googleapis.com trong pool.
// NAT/firewall của Docker drop socket sau vài phút (silently). Khi login lần 2,
// openid-client (bên trong NextAuth) reuse socket đã chết → request treo → OAUTH_CALLBACK_ERROR 3500ms.
httpAgentOptions: {
keepAlive: false,
},
typescript: {
ignoreBuildErrors: true,
},