Correctif theme
Some checks failed
Cadoles/hydra-sql/pipeline/pr-develop There was a failure building this commit

This commit is contained in:
Valentin Carroy 2024-10-22 14:57:45 +02:00
parent 05ad2642ea
commit 5a59383cdd
3 changed files with 14 additions and 4 deletions

View File

@ -13,3 +13,5 @@
!/package.json
!/symfony.lock
!/webpack.config.js
/public/build

View File

@ -2,6 +2,9 @@ parameters:
base_url: '%env(BASE_URL)%'
env(BASE_URL): '//'
base_path: '%env(BASE_PATH)%'
env(BASE_PATH): '/'
cookie_path: '%env(COOKIE_PATH)%'
env(COOKIE_PATH): '/'
framework:
@ -18,7 +21,7 @@ framework:
storage_factory_id: session.storage.factory.native
cookie_path: "%cookie_path%"
assets:
base_urls: '%base_url%'
base_path: '%base_path%'
router:
default_uri: '%base_url%'
#esi: true

View File

@ -6,14 +6,16 @@ if (!Encore.isRuntimeEnvironmentConfigured()) {
Encore.configureRuntimeEnvironment(process.env.NODE_ENV || 'dev');
}
const basePath = process.env.BASE_PATH || ''
// Definition de AppConfig
Encore
// directory where compiled assets will be stored
.setOutputPath('public/build/app/')
// public path used by the web server to access the output path
.setPublicPath('/build/app')
.setPublicPath(basePath + '/build/app')
// only needed for CDN's or sub-directory deploy
//.setManifestKeyPrefix('build/')
.setManifestKeyPrefix('build/app')
/*
* ENTRY CONFIG
@ -74,7 +76,10 @@ Encore
// directory where compiled assets will be stored
.setOutputPath('public/build/theme/')
// public path used by the web server to access the output path
.setPublicPath('/build/theme')
.setPublicPath(basePath + '/build/theme')
// only needed for CDN's or sub-directory deploy
.setManifestKeyPrefix('build/theme')
.addEntry('theme','./public/theme-entrypoint.js')
.splitEntryChunks()