import createNextIntlPlugin from 'next-intl/plugin' const withNextIntl = createNextIntlPlugin('./i18n.ts') /** @type {import('next').NextConfig} */ const nextConfig = { reactStrictMode: true, allowedDevOrigins: ['*'], async rewrites() { return [ { source: '/api/proxy/api/:path*', destination: `${process.env.NEXT_PUBLIC_API_URL || 'http://localhost:8000'}/api/:path*`, }, ] }, webpack: (config) => { config.resolve.fallback = { ...config.resolve.fallback, '@react-native-async-storage/async-storage': false, 'pino-pretty': false, } return config }, } export default withNextIntl(nextConfig)