Scheduling infrastructure for absolutely everyone.
adds redirect for /api to developer.cal.com (#2517)
Agusti Fernandez3b637eefaaa4
diff --git a/apps/docs/next.config.js b/apps/docs/next.config.jsindex 19c88a129a8..e47ae62d6a0 100644--- a/apps/docs/next.config.js+++ b/apps/docs/next.config.js@@ -3,4 +3,14 @@ const withNextra = require("nextra")({themeConfig: "./theme.config.js",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/",+ },+ ];+ },+});