From 03bf7b326fe775ddb0fdc79b737e7ae929dfcb30 Mon Sep 17 00:00:00 2001 From: Rotimi Best Date: Mon, 11 Dec 2023 02:23:05 +0300 Subject: [PATCH] debug: add vercel.json --- apps/docs/next.config.js | 10 +--------- apps/docs/vercel.json | 6 ++++++ 2 files changed, 7 insertions(+), 9 deletions(-) create mode 100644 apps/docs/vercel.json 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