31 lines
697 B
JavaScript
31 lines
697 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
reactStrictMode: true,
|
|
swcMinify: true,
|
|
|
|
// Standalone output for Docker (creates optimized server.js)
|
|
output: 'standalone',
|
|
|
|
experimental: {
|
|
serverActions: {
|
|
bodySizeLimit: '2mb',
|
|
},
|
|
},
|
|
env: {
|
|
NEXT_PUBLIC_API_URL: process.env.NEXT_PUBLIC_API_URL || 'http://localhost:4000',
|
|
},
|
|
images: {
|
|
unoptimized: process.env.NODE_ENV === 'development',
|
|
domains: ['localhost', 'xpeditis.com', 'staging.xpeditis.com'],
|
|
// Allow S3 images in production
|
|
remotePatterns: [
|
|
{
|
|
protocol: 'https',
|
|
hostname: '**.amazonaws.com',
|
|
},
|
|
],
|
|
},
|
|
};
|
|
|
|
module.exports = nextConfig;
|