From a7859597be914740a08529d3913b7943e742affe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Andr=C3=A9?= Date: Sun, 6 Oct 2024 09:35:08 +0200 Subject: [PATCH] [Site] Skip yarn & npm install during deploy > To disable the JavaScript dependencies and asset building, set NO_NPM or NO_YARN to 1 depending on your package manager. cf https://docs.platform.sh/guides/symfony/integration.html#symfony-build --- ux.symfony.com/.platform.app.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ux.symfony.com/.platform.app.yaml b/ux.symfony.com/.platform.app.yaml index c14dba22f39..dd83e74d958 100644 --- a/ux.symfony.com/.platform.app.yaml +++ b/ux.symfony.com/.platform.app.yaml @@ -47,6 +47,11 @@ hooks: curl -s https://get.symfony.com/cloud/configurator | (>&2 bash) + # We don't need to run yarn or npm... + # ...let's skip both build steps + NO_YARN=1 + NO_NPM=1 + (>&2 symfony-build) deploy: | @@ -55,6 +60,7 @@ hooks: (>&2 symfony-deploy) php bin/console app:load-data + # needed because StimulusBundle / asset mapper will currently # expect this asset mapper directory to exist at runtime mkdir -p var/translations