Enhance session management with improved error handling and secure cookie settings; update Next.js config for proxy trust
This commit is contained in:
@@ -12,6 +12,10 @@ const nextConfig = {
|
||||
output: process.env.NODE_ENV === 'production' ? 'standalone' : undefined,
|
||||
// External packages for better SQLite3 compatibility (Next.js 15+ syntax)
|
||||
serverExternalPackages: ['better-sqlite3'],
|
||||
// Trust proxy headers for Cloudflare tunnel
|
||||
experimental: {
|
||||
trustHost: true,
|
||||
},
|
||||
};
|
||||
|
||||
module.exports = nextConfig;
|
||||
|
||||
Reference in New Issue
Block a user