Fix dev server 500 error - conditionally apply standalone output for production only

This commit is contained in:
Kunthawat Greethong
2026-02-27 13:45:22 +07:00
parent a9e3c81fce
commit 0c22cac03c
2 changed files with 69 additions and 70 deletions

View File

@@ -1,7 +1,7 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'standalone',
// Only use standalone output in production (causes issues in dev mode)
...(process.env.NODE_ENV === 'production' && { output: 'standalone' }),
images: {
remotePatterns: [
{