diff --git a/apps/docs/next.config.js b/apps/docs/next.config.js index 20a7bc0c..d7744cbc 100644 --- a/apps/docs/next.config.js +++ b/apps/docs/next.config.js @@ -5,13 +5,5 @@ const withNextra = require('nextra')({ module.exports = { basePath: '/docs', - ...withNextra(), - async rewrites() { - return [ - { - source: '/:path*', - destination: `https://classroomio-com.vercel.app/:path*` - } - ]; - } + ...withNextra() }; diff --git a/apps/docs/vercel.json b/apps/docs/vercel.json new file mode 100644 index 00000000..ae765ee9 --- /dev/null +++ b/apps/docs/vercel.json @@ -0,0 +1,6 @@ +{ + "rewrites": [ + {"source": "/", "destination": "https://classroomio-com.vercel.app/"}, + {"source": "/:match*", "destination": "https://classroomio-com.vercel.app/:match*"} + ] +} \ No newline at end of file