260320:1659 Refactor Overrall #09 Fix by antigravity: pnpm frontend deploy
Build and Deploy / deploy (push) Successful in 7m17s

This commit is contained in:
admin
2026-03-20 16:59:10 +07:00
parent 321cf4a31c
commit 2d56c07eae
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ const loginSchema = z.object({
password: z.string().min(1),
});
const baseUrl = process.env.NEXT_PUBLIC_API_URL || "http://localhost:3001/api";
const baseUrl = (typeof window === "undefined" ? process.env.INTERNAL_API_URL : null) || process.env.NEXT_PUBLIC_API_URL || "http://localhost:3001/api";
// Helper to parse JWT expiry
function getJwtExpiry(token: string): number {