/** @type {import('next').NextConfig} */ const apiBase = process.env.DY_INTERNAL_API_URL || "http://127.0.0.1:8014"; const nextConfig = { async rewrites() { return [ { source: "/api/:path*", destination: `${apiBase}/api/:path*`, }, { source: "/covers/:path*", destination: `${apiBase}/covers/:path*`, }, ]; }, }; export default nextConfig;