22 lines
494 B
TypeScript
22 lines
494 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const nextConfig: NextConfig = {
|
|
transpilePackages: ["@fileshare/shared"],
|
|
experimental: {
|
|
optimizePackageImports: ["lucide-react"],
|
|
},
|
|
devIndicators: false,
|
|
reactStrictMode: true,
|
|
async rewrites() {
|
|
const backendUrl = process.env.BACKEND_INTERNAL_URL || "http://127.0.0.1:4000";
|
|
return [
|
|
{
|
|
source: "/api/:path*",
|
|
destination: `${backendUrl}/api/:path*`,
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|