diff --git a/www/api-reference/.env.sample b/www/api-reference/.env.sample index 118092a86e..47899803ec 100644 --- a/www/api-reference/.env.sample +++ b/www/api-reference/.env.sample @@ -6,4 +6,5 @@ NEXT_PUBLIC_ALGOLIA_APP_ID= NEXT_PUBLIC_ENV= NEXT_PUBLIC_BASE_URL= NEXT_PUBLIC_DOCS_URL= +NEXT_PUBLIC_UI_URL= ALGOLIA_WRITE_API_KEY= \ No newline at end of file diff --git a/www/api-reference/next.config.mjs b/www/api-reference/next.config.mjs index 6004b16c14..b2e3763887 100644 --- a/www/api-reference/next.config.mjs +++ b/www/api-reference/next.config.mjs @@ -8,6 +8,14 @@ const nextConfig = { async rewrites() { return { fallback: [ + { + source: "/ui", + destination: `${process.env.NEXT_PUBLIC_UI_URL}/ui`, + }, + { + source: "/ui/:path*", + destination: `${process.env.NEXT_PUBLIC_UI_URL}/ui/:path*`, + }, { source: "/:path*", destination: `${process.env.NEXT_PUBLIC_DOCS_URL}/:path*`,