import type { NextConfig } from 'next'; const endpoints = { frog: process.env.NEXT_PUBLIC_FROG_API_URL, bear: process.env.NEXT_PUBLIC_BEAR_API_URL, lion: process.env.NEXT_PUBLIC_LION_API_URL, shark: process.env.NEXT_PUBLIC_SHARK_API_URL, cow: process.env.NEXT_PUBLIC_COW_API_URL, pigeon: process.env.NEXT_PUBLIC_PIGEON_API_URL, }; const nextConfig: NextConfig = { reactStrictMode: false, eslint: { ignoreDuringBuilds: true, }, // async rewrites() { // return [ // { // source: '/api/frog/:path*', // destination: `${endpoints.frog}/api/frog/:path*`, // }, // { // source: '/api/bear/:path*', // destination: `${endpoints.bear}/api/bear/:path*`, // }, // { // source: '/api/lion/:path*', // destination: `${endpoints.lion}/api/lion/:path*`, // }, // { // source: '/api/shark/:path*', // destination: `${endpoints.shark}/api/shark/:path*`, // }, // { // source: '/api/cow/:path*', // destination: `${endpoints.cow}/api/cow/:path*`, // }, // { // source: '/api/pigeon/:path*', // destination: `${endpoints.pigeon}/api/pigeon/:path*`, // }, // ]; // }, }; export default nextConfig;