advanced-nova-media-library icon indicating copy to clipboard operation
advanced-nova-media-library copied to clipboard

Laravel Vapor - Field.js too large - HTTP 502

Open OfficialOzzy opened this issue 4 years ago • 2 comments

Hi all,

We are running on Laravel Vapor and we have hit an issue where the field.js file is too large to be served through Lambda, we were receiving a 502 error so I inspected the logs via AWS Athena and this is what the error was:

image

Can we split the file or minify it?

Thanks

OfficialOzzy avatar Dec 08 '21 10:12 OfficialOzzy

Ahoy there

Did anyone make any progress on this? The file is with 2.1MB still to large and fails for us, too.

Is there any other way to work with it?

Thanks

nea avatar Apr 25 '22 09:04 nea

Ok, I checked the new Nova4 version and there the file is way smaller, so this wouldn't run into problems.

I am not able to update to Nova4 right now, therefore I now minimized the field.js file via https://extendsclass.com/javascript-minifier.html and replaced it. First tests look good.

So this only works for 3.8.0, replacing it via post install cmd in composer

"@php -r \"copy('patches/vendor/ebess/advanced-nova-media-library/dist/js/field.js', 'vendor/ebess/advanced-nova-media-library/dist/js/field.js');\""

Maybe this helps others.

Best

nea avatar Apr 25 '22 09:04 nea