Stylesheet and JS failed to load

Site name: https://loser-engineer.netlify.app/

After the latest success build, my blog’s css and script were failed to load with 404 no response error. The assets’ URL seem be weird:

https://d33wubrfki0l68.cloudfront.net/js/adc83b19e793491b1c6ea0fd8b46cd9f32e592fc/_static/%7B%7B%20pathto

Here is network tab screenshot:


and build log (I can’t paste here due the post body limit) :
build log
Thank you for help and very sorry for my bad english.

HI @vdloc

The cloudfront.net URL indicates you have asset optimization enabled. You can disable this via the UI under Site settings > Build & deploy > Post processing > Asset optimization.

As for why the resource paths have {{ pathto(\" _static="" scripts="" pydata-sphinx-theme.js\',="" 1)="" }} appended I cannot say for certain, but I suspect this is either part of your templating, or part of the NextJS plugin.

1 Like

Thank you @coelmay , after disable asset optimization, my site is now working. CSS and script urls are in normal form:

https://633b9a5527787e07c48f0bac--loser-engineer.netlify.app/_next/static/css/272de15e6c967523.css

But I still don’t know why resource path have
{{ pathto(\" _static="" scripts="" pydata-sphinx-theme.js\',="" 1)="" }} when asset optimization is enabled.