- Remove Next.js rewrites proxy configuration - Use NEXT_PUBLIC_API_URL for direct API requests - Fixes ECONNRESET errors from proxy failures Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
23 lines
592 B
TypeScript
23 lines
592 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const nextConfig: NextConfig = {
|
|
transpilePackages: ["@multica/ui", "@multica/store", "@multica/hooks", "@multica/sdk"],
|
|
// Removed rewrites proxy - frontend requests API directly via NEXT_PUBLIC_API_URL
|
|
headers: async () => [
|
|
{
|
|
source: "/sw.js",
|
|
headers: [
|
|
{
|
|
key: "Cache-Control",
|
|
value: "no-cache, no-store, must-revalidate",
|
|
},
|
|
{
|
|
key: "Content-Type",
|
|
value: "application/javascript; charset=utf-8",
|
|
},
|
|
],
|
|
},
|
|
],
|
|
};
|
|
|
|
export default nextConfig;
|