Replies: 1 comment
-
|
I've been meaning to ask the same q. I'd tried |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Most likely this is not a specific question about statiq, but I searched for hours without any success.
I would like to have settings like
HostandLinkRootonly specified for the production environment (e.g. GitHub Pages). When running statiq's preview server, it should just work out of the box on localhost without any specificLinkRoot.So I created this
appsettings.json:{ "Host": "", "LinkRoot": "", "LinksUseHttps": false }as well as an
appsettings.Production.json{ "Host": "suchja.github.io/", "LinkRoot": "/statiq-dopetrope-demo", "LinksUseHttps": true }Additionally I do have a
settings.ymlwith some generic definitions (that I couldn't get into theappsettings.json- especially the calculatedPageTitle):However, when I run
dotnet run --environment Productionthe content fromappsettings.Production.jsonseems not to be used, because the links inindex.htmldo not change.Beta Was this translation helpful? Give feedback.
All reactions