Skip to content

Commit

Permalink
fix: revert private api in rewrites, add redirect exception
Browse files Browse the repository at this point in the history
  • Loading branch information
olexh committed Jun 23, 2024
1 parent 05b0155 commit 53654b2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const nextConfig = {
return [
{
source: '/api/:path*',
destination: `${process.env.NEXT_PUBLIC_API_URL}/:path*`,
destination: `${process.env.API_URL}/:path*`,
},
];
},
Expand All @@ -44,6 +44,11 @@ const nextConfig = {
destination: '/u/:username/list/anime',
permanent: true,
},
{
source: '/api/metrics',
destination: `/`,
permanent: true,
},
];
},
};
Expand Down

0 comments on commit 53654b2

Please sign in to comment.