done
This commit is contained in:
21
apps/frontend/next.config.ts
Normal file
21
apps/frontend/next.config.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user