From aab9193e7bce6f87156340f5c8c151987ffdc54a Mon Sep 17 00:00:00 2001 From: Morgan <33722304+ThyMinimalDev@users.noreply.github.com> Date: Fri, 16 Aug 2024 15:24:43 +0300 Subject: [PATCH] fix: rewrite to avoid cross origin issues with sprite.svg icons (#16239) --- apps/web/next.config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/web/next.config.js b/apps/web/next.config.js index f27194dce9..d61529fd41 100644 --- a/apps/web/next.config.js +++ b/apps/web/next.config.js @@ -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 ...[