Allow even nested routes under /api
This commit is contained in:
parent
c7e40722d1
commit
168b3879af
|
@ -10,11 +10,11 @@ const devConfig = {
|
|||
return [
|
||||
{
|
||||
source: "/api",
|
||||
destination: "http://localhost:5000/editor/links",
|
||||
destination: "http://localhost:5000",
|
||||
},
|
||||
{
|
||||
source: "/api/:slug",
|
||||
destination: "http://localhost:5000/:slug",
|
||||
source: "/api/:path*",
|
||||
destination: "http://localhost:5000/:path*",
|
||||
},
|
||||
];
|
||||
},
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
"lint": "eslint \"{pages,components}/**/*.{js,ts,tsx,jsx}\" --quiet --fix",
|
||||
"lint:check": "eslint \"{pages,components}/**/*.{js,ts,tsx,jsx}\" --quiet",
|
||||
"check": "npm run format:check && npm run lint:check",
|
||||
"check:fix": "npm run format && npm run lint"
|
||||
"check:fix": "npm run format && npm run lint",
|
||||
"clean-cache": "rm -rf ./.next"
|
||||
},
|
||||
"dependencies": {
|
||||
"fast-deep-equal": "^3.1.3",
|
||||
|
|
Loading…
Reference in New Issue