mirror of
https://github.com/denoland/deno.git
synced 2024-12-20 22:34:46 -05:00
2f8825a935
By default, `deno serve` will assign port 8000 (like `Deno.serve`). Users may choose a different port using `--port`. `deno serve /tmp/file.ts` `server.ts`: ```ts export default { fetch(req) { return new Response("hello world!\n"); }, }; ```
1 line
104 B
Text
1 line
104 B
Text
error: deno serve requires export default { fetch } in the main module, did you mean to run "deno run"?
|