Hugo and surge.sh

Hey,

Is it possible to use hugo with surge.sh? I’m trying but it’s not working. The site works perfectly when I do “hugo server -D”, but after doing “hugo” and “surge public”, the output is the following:

http://stillnotworking.surge.sh/

Any idea what’s happening?

Have you set your baseurl properly?

Your css file refers to example.com, so your website is not using any styling at the moment as your main.css file is not loading.

But yes, it should work. You just need to track down why your main.css file is loading from example.com.

I have no idea where that example.com is coming, but I’ve my baseurl set up properly. The only place where there is the “example.com” string is in the README.md and in the email, which I’ve already commented.

EDIT: Managed to make it work, somehow.