digital-garden-hugo-theme
digital-garden-hugo-theme copied to clipboard
Deploy with --bind=0.0.0.0
I'm trying to deploy locally within a closed domain network and having some trouble locating main.css. Network inspection shows the request to http://localhost:1313/css/main.css. I am able to reach the right main.css via http://ot-dev.senstar-stellar.local/css/main.css.
Everything works as expected on the local device.
actions taken:
- package.json line 9 changed to;
"dev": "hugo serve --bind=0.0.0.0", - config.toml line 1 changed to;
baseURL = 'http://ot-dev.senstar-stellar.local'url accessable from another device on network
Does the page load when you access via network on http://ot-dev.senstar-stellar.local?
In Hugo, when you set the base URL, all the paths for html/css/js files are built with the baseURL prefix, and so, it won't be accessible from localhost:1313
page loads when I access http://ot-dev.senstar-stellar.local except main.css because it is trying to be called from http://localhost:1313/css/main.css. So I see the page without any styling.
@KeremKaratas Can you explain how the .local domain is set up? Is it a proxy or redirect at router level or something else?