Update all backend API base URLs to use the production multica.ai domain. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
28 lines
664 B
TypeScript
28 lines
664 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const nextConfig: NextConfig = {
|
|
transpilePackages: ["@multica/ui", "@multica/store", "@multica/hooks", "@multica/sdk"],
|
|
rewrites: async () => [
|
|
{
|
|
source: "/api/:path*",
|
|
destination: `${process.env.API_URL || "https://api.multica.ai"}/api/:path*`,
|
|
},
|
|
],
|
|
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;
|