Fixed wrong path for assets managed by webpack and loaded via twig asset() function.

This had also the effect that 2FA via webauthn were not working, as the request the invalid path resetted the webauthn request saved in session.
This commit is contained in:
Jan Böhmer 2024-01-06 01:06:56 +01:00
parent df23ba07ba
commit ab09d319e9

View file

@ -41,6 +41,12 @@ Encore
// only needed for CDN's or subdirectory deploy (this should not be needeed, as we use auto public path) // only needed for CDN's or subdirectory deploy (this should not be needeed, as we use auto public path)
//.setManifestKeyPrefix('build/') //.setManifestKeyPrefix('build/')
//Use build/ as public path inisde the manifest.json (instead of "auto")
//Without this all webpack managed stuff which is loaded via the assets() twig function will not work
.configureManifestPlugin(options => {
options.publicPath = 'build/';
})
/* /*
* ENTRY CONFIG * ENTRY CONFIG
* *