diff --git a/docs/staticwebapp.config.json b/docs/staticwebapp.config.json index bed65c565b..f92d44cfd2 100644 --- a/docs/staticwebapp.config.json +++ b/docs/staticwebapp.config.json @@ -3,5 +3,13 @@ "404": { "rewrite": "/docs/404.html" } + }, + "routes": [ + { + "route": "/*.{jpg,gif,png,ico,svg,css,scss,js,webp,webmanifest}", + "headers": { + "cache-control": "public, max-age=604800, immutable" + } } + ] } diff --git a/website/apps/web/vite.config.mts b/website/apps/web/vite.config.mts index 704a55cf82..896a98e4ba 100644 --- a/website/apps/web/vite.config.mts +++ b/website/apps/web/vite.config.mts @@ -16,6 +16,6 @@ export default defineConfig({ port: 3000, }, build: { - sourcemap: true, + sourcemap: false, }, })