mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 04:39:10 +00:00
BREAKING: There is no public Rust API for the CLI (#5226)
This commit is contained in:
parent
3cccadcf0f
commit
73d8fa74c6
7 changed files with 786 additions and 711 deletions
|
@ -37,7 +37,7 @@ const serverArgs = parse(args) as FileServerArgs;
|
|||
|
||||
const CORSEnabled = serverArgs.cors ? true : false;
|
||||
const target = posix.resolve(serverArgs._[1] ?? "");
|
||||
const addr = `0.0.0.0:${serverArgs.port ?? serverArgs.p ?? 4500}`;
|
||||
const addr = `0.0.0.0:${serverArgs.port ?? serverArgs.p ?? 4507}`;
|
||||
|
||||
const MEDIA_TYPES: Record<string, string> = {
|
||||
".md": "text/markdown",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue