diff --git a/next.config.mjs b/next.config.mjs index 7670067..cea70f9 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -16,6 +16,18 @@ const nextConfig = { eslint: { dirs: ["src"], }, + async rewrites() { + return [ + { + source: '/:domain([a-z0-9-]+\\.[a-z]{2,})', + destination: '/favicon/:domain', + }, + { + source: '/api/:domain([a-z0-9-]+\\.[a-z]{2,})', + destination: '/api/favicon/:domain', + }, + ] + }, images: { remotePatterns: [ {