File size: 791 Bytes
8f9c4ef | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | /** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
// Enable standalone output for Docker deployment
output: 'standalone',
// Environment variables
env: {
NEXT_PUBLIC_API_URL: process.env.NEXT_PUBLIC_API_URL || 'http://localhost:4000',
},
// Monaco editor webpack config
webpack: (config, { isServer }) => {
if (!isServer) {
// Monaco editor workers
config.resolve.fallback = {
...config.resolve.fallback,
fs: false,
path: false,
};
}
return config;
},
// Image domains
images: {
remotePatterns: [
{ protocol: 'https', hostname: 'api.dicebear.com' },
{ protocol: 'https', hostname: 'lh3.googleusercontent.com' },
],
},
};
export default nextConfig;
|