feat: experimental support for Deno.serve (#681)
The experimental support can be enabled through the `experimentalDenoServe` option for `start()`. Co-authored-by: Luca Casonato <hello@lcas.dev>
This commit is contained in:
co-authored by
Luca Casonato
parent
b7f0d5c860
commit
ba7c78bcc2
@@ -8,4 +8,6 @@ import { start } from "$fresh/server.ts";
|
||||
import routes from "./fresh.gen.ts";
|
||||
import options from "./options.ts";
|
||||
|
||||
await start(routes, options);
|
||||
const experimentalDenoServe = Deno.args.includes("--experimental-deno-serve");
|
||||
|
||||
await start(routes, { ...options, experimentalDenoServe });
|
||||
|
||||
Reference in New Issue
Block a user