增加favicon与apple-touch-icon到动态接口的重定向
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled

This commit is contained in:
Your Name 2026-02-14 21:45:13 +08:00
parent a70ab94ead
commit f5898f0075

View File

@ -34,6 +34,20 @@ const nextConfig: NextConfig = {
}, },
], ],
}, },
async redirects() {
return [
{
source: "/favicon.ico",
destination: "/api/favicon",
permanent: false,
},
{
source: "/apple-touch-icon.png",
destination: "/api/favicon",
permanent: false,
},
];
},
}; };
export default nextConfig; export default nextConfig;