import type { NextConfig } from 'next'; import createNextIntlPlugin from 'next-intl/plugin'; import './env'; // Validate env vars at build time const withNextIntl = createNextIntlPlugin('./i18n/request.ts'); const config: NextConfig = { transpilePackages: ['@repo/db', '@repo/api', '@repo/ui', '@repo/storage'], reactStrictMode: true, poweredByHeader: false, serverExternalPackages: [ 'pino', 'pino-pretty', '@aws-sdk/client-s3', '@aws-sdk/s3-request-presigner', '@smithy/node-http-handler', ], }; export default withNextIntl(config);