Cloudflare Pages: css and js file can't download

I have tried use Cloudflare Pages to deploy a Hugo static website. the domain is https://yanjb.pages.dev. When I visit this site, the content is messed. I can see from the developer tool that css and js file can’t be downloaded.

It seems that pages.devcss and pages.devjs is not ssl verified.

So what should I do? I have searched but it seems no one has meet this problem before.

If I directly go to the css url, Firefox reports an error

Look at the URL. You are missing / it should be /css/style.css and /js/bundle.js

1 Like

Thank you! I checked my Hugo config.yaml, there is no / at the end of baseurl. After add /, it works!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.