diff --git a/apps/admin/vercel.json b/apps/admin/vercel.json index fd04717..1421e16 100644 --- a/apps/admin/vercel.json +++ b/apps/admin/vercel.json @@ -16,5 +16,25 @@ "source": "/:path*", "destination": "/index.html" } + ], + "headers": [ + { + "source": "/(.*)", + "headers": [ + { + "key": "Cache-Control", + "value": "public, max-age=31536000, immutable" + } + ] + }, + { + "source": "/(.*).(png|jpg|jpeg|gif|webp|svg|ico)$", + "headers": [ + { + "key": "Cache-Control", + "value": "public, max-age=31536000, immutable" + } + ] + } ] } diff --git a/apps/admin/vite.config.mts b/apps/admin/vite.config.mts index b51f865..fca4008 100644 --- a/apps/admin/vite.config.mts +++ b/apps/admin/vite.config.mts @@ -1,3 +1,10 @@ import { createViteConfig } from "@celeris/vite"; -export default createViteConfig(); +export default createViteConfig({ + overrides: { + assetsInclude: ["**/*.svg"], + build: { + assetsInlineLimit: 0, + }, + }, +});