fix: API proxy — strip /api prefix in rewrite (backend routes don't use /api)
This commit is contained in:
@@ -5,7 +5,7 @@ const nextConfig: NextConfig = {
|
|||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
source: '/api/:path*',
|
source: '/api/:path*',
|
||||||
destination: 'http://127.0.0.1:9876/api/:path*',
|
destination: 'http://127.0.0.1:9876/:path*',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user