can anyone help me figure out why site.url does NOT change to http://localhost:4000 per the documentation? It mirrors the url param in _config.yml. I have checked and jekyll.environment = development.
I have spun up a new Jekyll project on a different machine and the results are the same.
That documentation does mention:
So double-check your
JEKYLL_ENVvalue, and your command (jekyll serve)The OP points out to
jekyll/jekyllPR 7253 in jekyll v4.2.0This, however, is in the process of being reverted: PR 8620
So this could be a workaround in your case: