redirect api to swagger

feat/docs-api
Agusti Fernandez Pardo 2022-04-15 16:01:49 +02:00
parent f229bb6513
commit 98b7765705
1 changed files with 6 additions and 1 deletions

View File

@ -3,4 +3,9 @@ const withNextra = require("nextra")({
themeConfig: "./theme.config.js",
unstable_staticImage: true,
});
module.exports = withNextra();
module.exports = withNextra({
async rewrites() {
return [{ basePath: false, source: "/api", destination: "https://swagger-beta.vercel.app" }];
},
});