From ea2eb58d8678bbb881275955435c176068502f41 Mon Sep 17 00:00:00 2001 From: chronark Date: Mon, 23 Dec 2024 20:25:17 +0100 Subject: [PATCH] fix: use a redirect to avoid auth issues --- apps/dashboard/next.config.js | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/apps/dashboard/next.config.js b/apps/dashboard/next.config.js index 830672ed5..26fdb8eab 100644 --- a/apps/dashboard/next.config.js +++ b/apps/dashboard/next.config.js @@ -33,19 +33,6 @@ const nextConfig = { }, ]; }, - redirect: () => [ - // Powers our gateway.new compliant domain - { - source: "/:path", - has: [ - { - type: "host", - value: "gateway.new", - }, - ], - destination: "/gateway-new", - }, - ], rewrites: () => [ { source: "/docs", @@ -63,6 +50,17 @@ const nextConfig = { source: "/engineering/:match*", destination: "https://unkey-engineering.mintlify.dev/engineering/:match*", }, + // Powers our gateway.new compliant domain + { + source: "/:path", + has: [ + { + type: "host", + value: "gateway.new", + }, + ], + destination: "/gateway-new", + }, ], };