diff --git a/source/frontend/src/tenants/tenant.tsx b/source/frontend/src/tenants/tenant.tsx index 655a9fa6a0..9b9e299bd9 100644 --- a/source/frontend/src/tenants/tenant.tsx +++ b/source/frontend/src/tenants/tenant.tsx @@ -48,7 +48,7 @@ export const TenantProvider: React.FC> = props } } else { // Fetch the configuration file generated for the environment. - const r = await axios.get('tenants/tenant.json'); + const r = await axios.get('/tenants/tenant.json'); const fileTenantConfig = await r.data; setTenant({ ...defaultTenant, ...fileTenantConfig }); } diff --git a/source/frontend/vite.config.ts b/source/frontend/vite.config.ts index 253ea0870c..2f53a98a56 100644 --- a/source/frontend/vite.config.ts +++ b/source/frontend/vite.config.ts @@ -64,6 +64,8 @@ export default defineConfig({ svgr({ include: '**/*.svg?react', }), - viteCompression(), + viteCompression({ + filter: /\.(js|mjs|css|html)$/i, + }), ], });