d50c05b120
Frontend half of the pre-launch audit campaign: - types/index.ts + kol/KolPageClient.tsx: add missing 'reduce' KolAction (backend emits it; frontend lacked the type + color/label maps → undefined styling). Adds ACTION_COLOR/actionLabel/postActionLabel entries. - proxy/[...path]/route.ts: relay real client IP (x-forwarded-for / x-real-ip) so the backend rate limiter buckets per-user instead of per-Next-server (BUG-02). - Settings/BotConfigPanel redesign, paper-mode clarity, copy cleanup. - Assorted page/display fixes, loading states, Pagination component. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
28 lines
673 B
JavaScript
28 lines
673 B
JavaScript
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)
|