Using a CDN for static and generated assets

Hello- Hugo noob here trying to change the base url for both hugo-generated and static css, js, and images so they can be hosted via CDN pull.

In the docs I see a way to change the base URL for a multi-language site but I don’t see any built in way to change the baseurl just for assets.

Long time wordpress user- loving Hugo so far (bringing back the nostalgia & fun of making HTML web sites from scratch) My apologies if I did not find the correct info already somewhere online. I appreciate any help.

1 Like

If you use Netlify, this will be done for you automatically.

Hello, and thank you for your reply. I should add that I am hosting with just nginx at the moment.

1 Like

Is building the CDN URL for these static assets an option? As in building the URL string in your templates