Enhance session management with improved error handling and secure cookie settings; update Next.js config for proxy trust

This commit is contained in:
2025-10-08 22:25:25 +01:00
parent 69b456f3f8
commit 00f1814f27
2 changed files with 38 additions and 4 deletions
+4
View File
@@ -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;