2026-01-06 12:35:01 +01:00
|
|
|
import type { NextConfig } from 'next'
|
|
|
|
|
|
|
|
|
|
const nextConfig: NextConfig = {
|
|
|
|
|
output: 'standalone',
|
2026-01-17 12:33:11 +01:00
|
|
|
// reactCompiler: true, // Requires babel-plugin-react-compiler - enable later
|
2026-01-06 12:35:01 +01:00
|
|
|
experimental: {
|
|
|
|
|
serverActions: {
|
|
|
|
|
bodySizeLimit: '2mb',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
images: {
|
|
|
|
|
remotePatterns: [
|
|
|
|
|
{
|
|
|
|
|
protocol: 'https',
|
|
|
|
|
hostname: '*.letsbe.solutions',
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
2026-01-17 12:33:11 +01:00
|
|
|
// Turbopack config (Next.js 16 default bundler)
|
|
|
|
|
turbopack: {},
|
|
|
|
|
// Handle native modules like ssh2 (for webpack fallback)
|
|
|
|
|
webpack: (config, { isServer }) => {
|
|
|
|
|
if (isServer) {
|
|
|
|
|
// Externalize ssh2 and its native dependencies
|
|
|
|
|
config.externals = config.externals || []
|
|
|
|
|
config.externals.push({
|
|
|
|
|
'ssh2': 'commonjs ssh2',
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
return config
|
|
|
|
|
},
|
|
|
|
|
// Externalize ssh2 for both Turbopack and Webpack
|
|
|
|
|
serverExternalPackages: ['ssh2'],
|
2026-01-06 12:35:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default nextConfig
|