From 720f0cdf3cd9c3ebd023133ff9ffef183740bce6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Noco=C5=84?= Date: Mon, 21 Jul 2025 09:40:56 +0200 Subject: [PATCH] Added mention about production assets --- docs/infrastructure_and_maintenance/performance.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/infrastructure_and_maintenance/performance.md b/docs/infrastructure_and_maintenance/performance.md index 6b66fe259c..e253198397 100644 --- a/docs/infrastructure_and_maintenance/performance.md +++ b/docs/infrastructure_and_maintenance/performance.md @@ -56,6 +56,12 @@ In production setups: - Review the [Symfony performance documentation]([[= symfony_doc =]]/performance.html) and apply matching suggestions, including OPCache configuration if enabled. +### Frontend assets + +Deploy a [production build](https://webpack.js.org/guides/production/) of your assets to reduce their size and improve loading time. + +You can build them by running `yarn encore prod`, or by setting the environmental variable `NODE_ENV` to `production` in your production environment. + ### Composer - Keep Composer up to date.