fix: 修复常规请求api路径缺失问题
This commit is contained in:
@@ -10,7 +10,7 @@ const nextConfig: NextConfig = {
|
||||
return [
|
||||
{
|
||||
source: '/api/:path*',
|
||||
destination: 'http://localhost:3001/:path*',
|
||||
destination: 'http://localhost:3001/api/:path*',
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user