Mismatch results in dev with the flag --location #424
Answered
by
oscarotero
metacriacoes
asked this question in
Q&A
-
The code: // _config.ts
import lume from "https://deno.land/x/[email protected]/mod.ts";
const site = lume({
location: new URL("http://localhost:8888"),
server: {
port: 8888
}
});
console.log(`site.options.location.href: ${site.options.location.href}`);
export default site; Command A: deno run --unstable -A https://deno.land/x/[email protected]/cli.ts -s -d Output A: ...
site.options.location.href: http://localhost:3000/
... Command B: deno run --unstable -A https://deno.land/x/[email protected]/cli.ts -s -d --location=http://localhost:8888 Output B: ...
site.options.location.href: http://localhost:8888/
... Shouldn't the Thanks. |
Beta Was this translation helpful? Give feedback.
Answered by
oscarotero
Jun 1, 2023
Replies: 1 comment 3 replies
-
If an explicit |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In this case, the hostname is
localhost
.You can see the implementation here: https://github.com/lumeland/lume/blob/master/mod.ts#L82-L86
(
options.location
is the value of --location) andoptions.serve
is true if the flag-s
or--serve
is set.