diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6e95c05..aa30802 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -56,7 +56,7 @@ deploy_preprod: build_prod: stage: build only: - - main + - prod image: composer:2 script: - apk add --no-cache nodejs npm diff --git a/public/site/models/project.php b/public/site/models/project.php index df39ff1..1152945 100644 --- a/public/site/models/project.php +++ b/public/site/models/project.php @@ -159,7 +159,7 @@ class ProjectPage extends NotificationsPage { "physicalSample" => "échantillon physique", ]; - return $stepsLabel[$this->currentStep()->value()] ?? "brief"; + return $stepsLabel[$this->currentStep()->value()]; } // public function printManagers() { diff --git a/public/site/snippets/header.php b/public/site/snippets/header.php index a35fc34..f8e4f54 100644 --- a/public/site/snippets/header.php +++ b/public/site/snippets/header.php @@ -25,8 +25,8 @@ - - + + diff --git a/vite.config.js b/vite.config.js index 154116f..c235442 100644 --- a/vite.config.js +++ b/vite.config.js @@ -14,7 +14,7 @@ export default defineConfig(({ mode }) => { }, }, sourcemap: mode === 'staging', - minify: mode === 'production', + minify: mode === 'production' ? 'esbuild' : false, }, server: { watch: {