From 859cc9883ab46d47848287612995d5adfc34bd96 Mon Sep 17 00:00:00 2001 From: afornerot Date: Mon, 26 Jun 2023 17:07:37 +0200 Subject: [PATCH] gestion apache_alias) --- webpack.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 14ef7e4..1dd9fae 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -10,9 +10,9 @@ Encore // directory where compiled assets will be stored .setOutputPath('public/build/') // public path used by the web server to access the output path - .setPublicPath('/build') + .setPublicPath('/' + (process.env.APACHE_ALIAS ? process.env.APACHE_ALIAS + '/' : '') + 'build') // only needed for CDN's or sub-directory deploy - //.setManifestKeyPrefix('build/') + .setManifestKeyPrefix('build/') /* * ENTRY CONFIG