fix: rewrite to avoid cross origin issues with sprite.svg icons (#16239)

This commit is contained in:
Morgan
2024-08-16 15:24:43 +03:00
committed by GitHub
parent a6d2e46b3d
commit aab9193e7b
+4
View File
@@ -365,6 +365,10 @@ const nextConfig = {
source: "/team/:teamname/avatar.png",
destination: "/api/user/avatar?teamname=:teamname",
},
{
source: "/icons/sprite.svg",
destination: `${process.env.NEXT_PUBLIC_WEBAPP_URL}/icons/sprite.svg`,
},
// When updating this also update pagesAndRewritePaths.js
...[