增加favicon与apple-touch-icon到动态接口的重定向
This commit is contained in:
parent
a70ab94ead
commit
f5898f0075
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user