Fix: Use Next.js server mode instead of static export

Static export (output: 'export') doesn't support server-side features
like API routes or server-side rendering. For Coolify deployment,
we need Next.js to run as a server.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
SJCoetz 2026-05-24 22:15:09 +02:00
parent b738bc7495
commit 3c17f1c74a

View file

@ -1,11 +1,8 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'export',
distDir: 'dist',
images: {
unoptimized: true,
},
trailingSlash: true,
};
module.exports = nextConfig;