calcom/apps/docs/next.config.js
Agusti Fernandez 3b637eefaa
adds redirect for /api to developer.cal.com (#2517)
Co-authored-by: Agusti Fernandez Pardo <git@agusti.me>
2022-04-15 14:19:52 -06:00

16 lines
388 B
JavaScript

const withNextra = require("nextra")({
theme: "nextra-theme-docs",
themeConfig: "./theme.config.js",
unstable_staticImage: true,
});
module.exports = withNextra({
async rewrites() {
return [
// This redirects requests recieved at / the root to the /api/ folder.
{
source: "/api",
destination: "https://developer.cal.com/",
},
];
},
});