mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-20 17:15:51 +02:00
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:
parent
df23ba07ba
commit
ab09d319e9
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||||
*
|
*
|
||||||
|
@ -185,4 +191,4 @@ module.exports = Encore.getWebpackConfig();
|
||||||
|
|
||||||
//Enable webpack auto public path (this only works in combination with WebpackAutoPathSubscriber!!)
|
//Enable webpack auto public path (this only works in combination with WebpackAutoPathSubscriber!!)
|
||||||
//We do it here to supress a warning caused by webpack Encore
|
//We do it here to supress a warning caused by webpack Encore
|
||||||
module.exports.output.publicPath = 'auto';
|
module.exports.output.publicPath = 'auto';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue