diff --git a/next.config.mjs b/next.config.mjs index d5a1e59c..a4aefb19 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -33,7 +33,7 @@ const nextConfig = { return [ { source: '/api/:path*', - destination: `${process.env.NEXT_PUBLIC_API_URL}/:path*`, + destination: `${process.env.API_URL}/:path*`, }, ]; }, @@ -44,6 +44,11 @@ const nextConfig = { destination: '/u/:username/list/anime', permanent: true, }, + { + source: '/api/metrics', + destination: `/`, + permanent: true, + }, ]; }, };