Fix: Remove hardcoded rewrites in next.config.ts that hijacked API routes

This commit is contained in:
ypratama committed 2026-08-28 11:27:38 +07:00
1 parent 9c88561266
commit 7bfd1d831c
1 file changed
+1 -8
+1 -8
View File
@@ -7,14 +7,7 @@ const nextConfig: NextConfig = {
allowedOrigins: ["dev.demoplace.my.id", "www.dev.demoplace.my.id", "fe0.dev.backone.cloud", "www.fe0.dev.backone.cloud"],
},
},
async rewrites() {
return [
{
source: '/api/:path*',
destination: `${process.env.NEXT_PUBLIC_API_URL || 'http://127.0.0.1:3011'}/api/:path*`,
},
];
},
};
export default nextConfig;