Skip to content

Commit

Permalink
fix: use a redirect to avoid auth issues
Browse files Browse the repository at this point in the history
  • Loading branch information
chronark committed Dec 23, 2024
1 parent 980a384 commit ea2eb58
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions apps/dashboard/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
},
],
};

Expand Down

0 comments on commit ea2eb58

Please sign in to comment.