Files
project-fileshare/apps/frontend/next.config.ts

22 lines
494 B
TypeScript
Raw Normal View History

2026-10-29 13:21:30 +06:00
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;