import type { NextConfig } from 'next';

const nextConfig: NextConfig = {
  // Enable React strict mode for better development experience
  reactStrictMode: true,

  // Output as standalone for Docker deployment
  output: 'standalone',

  // Enable transpilation of workspace packages
  transpilePackages: [
    '@{{PROJECT_NAME}}/ui',
    '@{{PROJECT_NAME}}/layout',
    '@{{PROJECT_NAME}}/auth',
    '@{{PROJECT_NAME}}/logger',
  ],

  // Environment variables available in the browser
  env: {
    NEXT_PUBLIC_APP_NAME: '{{COMPONENT_NAME}}',
  },
};

export default nextConfig;
