From 7bfd1d831c14d39d22f66a8627a06a71c34b8a3e Mon Sep 17 00:00:00 2001 From: ypratama Date: Fri, 28 Aug 2026 11:27:38 +0700 Subject: [PATCH] Fix: Remove hardcoded rewrites in next.config.ts that hijacked API routes --- next.config.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/next.config.ts b/next.config.ts index 745c555..8f50731 100644 --- a/next.config.ts +++ b/next.config.ts @@ -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;