-
-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lume serve: expected to respect ServerOptions for location #607
Labels
bug
Something isn't working
Comments
Hi. Yes, this is a bug, sorry for the troube. |
Fixed in Lume 2.2.0. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
2.1.4
Platform
Linux
What steps will reproduce the bug?
lume({server: {port: 1234}})
)url()
fromLume.Helpers
withabsolute
set totrue
deno task lume --serve
How often does it reproduce? Is there a required condition?
always
What is the expected behavior?
I am happy to be corrected if I misunderstand something, but I would have expected the output of
Lume.Helpers.url("/test", true)
to behttp://localhost:1234/test
(with the custom port1234
defined in the config).What do you see instead?
It outputs
http://localhost:3000/test
, presumably because of the logic insidelume/core/utils/cli_options.ts:getOptionsFromCli()
, where it falls back onto port 3000 when there is nothing passed by CLI.Additional information
I am new to Deno and Lume and am really liking it. Great job. (This is my first issue I open on a FOSS project on github, so please let me know if I can improve the issue).
The text was updated successfully, but these errors were encountered: