diff --git a/www/apps/api-reference/next.config.mjs b/www/apps/api-reference/next.config.mjs index c9399ad994..c682e233c4 100644 --- a/www/apps/api-reference/next.config.mjs +++ b/www/apps/api-reference/next.config.mjs @@ -4,19 +4,6 @@ import bundleAnalyzer from "@next/bundle-analyzer" /** @type {import('next').NextConfig} */ const nextConfig = { basePath: process.env.NEXT_PUBLIC_BASE_PATH || "/v2/api", - async rewrites() { - return { - fallback: [ - { - source: "/:path*", - destination: `${ - process.env.NEXT_PUBLIC_DOCS_URL || "https://localhost:3001" - }/:path*`, - basePath: false, - }, - ], - } - }, webpack: (config) => { config.ignoreWarnings = [{ module: /node_modules\/keyv\/src\/index\.js/ }] diff --git a/www/apps/resources/next.config.mjs b/www/apps/resources/next.config.mjs index dfbbb431df..bfbfcbc74c 100644 --- a/www/apps/resources/next.config.mjs +++ b/www/apps/resources/next.config.mjs @@ -29,19 +29,6 @@ const nextConfig = { transpilePackages: ["docs-ui"], basePath: process.env.NEXT_PUBLIC_BASE_PATH || "/v2/resources", - async rewrites() { - return { - fallback: [ - { - source: "/:path*", - destination: `${ - process.env.NEXT_PUBLIC_DOCS_URL || "https://localhost:3001" - }/:path*`, - basePath: false, - }, - ], - } - }, async redirects() { // redirect original file paths to the rewrite return slugChanges.map((item) => ({ diff --git a/www/apps/ui/next.config.js b/www/apps/ui/next.config.js index 2629758415..8b697ed736 100644 --- a/www/apps/ui/next.config.js +++ b/www/apps/ui/next.config.js @@ -3,19 +3,6 @@ const { withContentlayer } = require("next-contentlayer") /** @type {import('next').NextConfig} */ const nextConfig = { basePath: process.env.NEXT_PUBLIC_BASE_PATH || "/ui", - async rewrites() { - return { - fallback: [ - { - source: "/:path*", - destination: `${ - process.env.NEXT_PUBLIC_DOCS_URL || "https://localhost:3001" - }/:path*`, - basePath: false, - }, - ], - } - }, reactStrictMode: true, } diff --git a/www/apps/user-guide/next.config.mjs b/www/apps/user-guide/next.config.mjs index 348cec61d0..3581c5a111 100644 --- a/www/apps/user-guide/next.config.mjs +++ b/www/apps/user-guide/next.config.mjs @@ -82,21 +82,7 @@ const nextConfig = { transpilePackages: ["docs-ui"], // TODO uncomment if we decide on baes path - // basePath: process.env.NEXT_PUBLIC_BASE_PATH || "/v2/user-guide", - basePath: process.env.NEXT_PUBLIC_BASE_PATH || "/user-guide", - async rewrites() { - return { - fallback: [ - { - source: "/:path*", - destination: `${ - process.env.NEXT_PUBLIC_DOCS_URL || "https://localhost:3001" - }/:path*`, - basePath: false, - }, - ], - } - }, + basePath: process.env.NEXT_PUBLIC_BASE_PATH || "/v2/user-guide", } export default withMDX(nextConfig)