adds redirect for /api to developer.cal.com (#2517)
Co-authored-by: Agusti Fernandez Pardo <git@agusti.me>
This commit is contained in:
parent
46e1d28881
commit
3b637eefaa
1 changed files with 11 additions and 1 deletions
|
@ -3,4 +3,14 @@ const withNextra = require("nextra")({
|
||||||
themeConfig: "./theme.config.js",
|
themeConfig: "./theme.config.js",
|
||||||
unstable_staticImage: true,
|
unstable_staticImage: true,
|
||||||
});
|
});
|
||||||
module.exports = withNextra();
|
module.exports = withNextra({
|
||||||
|
async rewrites() {
|
||||||
|
return [
|
||||||
|
// This redirects requests recieved at / the root to the /api/ folder.
|
||||||
|
{
|
||||||
|
source: "/api",
|
||||||
|
destination: "https://developer.cal.com/",
|
||||||
|
},
|
||||||
|
];
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
Loading…
Reference in a new issue