Allow even nested routes under /api

This commit is contained in:
Aditya Thakral 2021-04-02 02:18:27 -04:00
parent c7e40722d1
commit 168b3879af
2 changed files with 5 additions and 4 deletions

View File

@ -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*",
},
];
},

View File

@ -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",