change route.ts
This commit is contained in:
@@ -88,7 +88,7 @@ export async function POST(request: NextRequest) {
|
|||||||
// Set secure session cookie
|
// Set secure session cookie
|
||||||
response.cookies.set('user_session', JSON.stringify(userWithoutPassword), {
|
response.cookies.set('user_session', JSON.stringify(userWithoutPassword), {
|
||||||
httpOnly: true,
|
httpOnly: true,
|
||||||
secure: process.env.NODE_ENV === 'production',
|
secure: false, // Set to false to allow HTTP (for Coolify deployment)
|
||||||
sameSite: 'lax',
|
sameSite: 'lax',
|
||||||
maxAge: 24 * 60 * 60, // 24 hours
|
maxAge: 24 * 60 * 60, // 24 hours
|
||||||
path: '/',
|
path: '/',
|
||||||
|
|||||||
Reference in New Issue
Block a user