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
-
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
Host
andLinkRoot
only 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
:as well as an
appsettings.Production.json
Additionally I do have a
settings.yml
with some generic definitions (that I couldn't get into theappsettings.json
- especially the calculatedPageTitle
):However, when I run
dotnet run --environment Production
the content fromappsettings.Production.json
seems not to be used, because the links inindex.html
do not change.Beta Was this translation helpful? Give feedback.
All reactions