Fix: Remove hardcoded rewrites in next.config.ts that hijacked API routes
This commit is contained in:
1 parent
9c88561266
commit
7bfd1d831c
1 file changed
+1
-8
+1
-8
@@ -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;
|
||||
Reference in new issue
Block a user