mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-04 16:08:54 +00:00
Add one more path for broken-image temporary fix
This commit is contained in:
@@ -12,9 +12,13 @@ export function generateAssetsPlugin(isDev = false) {
|
||||
// Copy favicon
|
||||
await fs.copy('./client/homebrew/favicon.ico', `${buildDir}/assets/favicon.ico`);
|
||||
|
||||
//hopefully temporary to fix 406 flood coming from editor
|
||||
//Copy this image into multiple paths to avoid server spam where browser requests an image
|
||||
//at the wrong path, gets a 406, then in response requests broken-image which also fails. Error handler
|
||||
//used the wrong path for this image causing an infinite request loop. Should be able to remove
|
||||
//in some time once all users haver refreshed their browser
|
||||
await fs.copy('./client/icons/broken-image.jpg', `${buildDir}/edit/client/icons/broken-image.jpg`);
|
||||
await fs.copy('./client/icons/broken-image.jpg', `${buildDir}/new/client/icons/broken-image.jpg`);
|
||||
await fs.copy('./client/icons/broken-image.jpg', `${buildDir}/client/icons/broken-image.jpg`);
|
||||
|
||||
// Copy shared styles/fonts
|
||||
const assets = fs.readdirSync('./shared/naturalcrit/styles');
|
||||
|
||||
Reference in New Issue
Block a user