Skip to content

Commit

Permalink
Update next.config.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
seadfeng authored Aug 29, 2024
1 parent e501ca0 commit d459772
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
{
Expand Down

0 comments on commit d459772

Please sign in to comment.