gethugothemes / bookworm-light-hugo

Bookworm is a clean and modern Hugo blog theme focused on high speed and support multiple authors.
https://gethugothemes.com/products/bookworm/?utm_source=bookworm_github&utm_medium=referral&utm_campaign=github_theme_about
MIT License
100 stars 76 forks source link

Netlify deploy #6

Closed hvitis closed 3 years ago

hvitis commented 3 years ago

Hello!

I have some errors after deploying, console says:

https://demo.gethugothemes.com/bookworm-light/css/vendor.min.baf52ea3605b317bff1a5643db187b2f7d588fa8f7f86f8563edd75fe058becd61ff13627cd610439cfd7bdb239855cd89ef10674abb20fe6843b2b2aa589c6b.css net::ERR_ABORTED 404
musing-ardinghelli-763b87.netlify.app/:11 GET https://musing-ardinghelli-763b87.netlify.app/bookworm-light/js/vendor.min.145a21dc1d3b6180ba4053b597f77d01206a5207dbc280de83d4151958109b94fad45e42ce423c4c4cf0cef270a67279b4db5d19f05e3eee33b3838de0028318.js net::ERR_ABORTED 404

Under https://musing-ardinghelli-763b87.netlify.app/ after having deployed to Netlify I am getting the following result:

Screenshot 2021-10-15 at 02 14 48

Any ideas on what am I doing wrong?

hvitis commented 3 years ago

Works perfectly on local

hvitis commented 3 years ago

I had to change baseURL in config.toml to my new production url.

Now it works

davidsneighbour commented 3 years ago

That is an expected outcome. Hugo replaces internal links with the local setup when it runs on the development server (default localhost:1313 if you don't change it) and all deploys use the URL you set up in baseURL. If you change domains often (for instance if you let Netlify deploy any branch or pull request with their own subdomains) you can set baseURL to "/" and it will not come to this error anymore.