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
+9
-1
@@ -4,7 +4,15 @@ import { InnerRenderFunction, RenderContext } from "./render.ts";
|
||||
|
||||
// --- APPLICATION CONFIGURATION ---
|
||||
|
||||
export type StartOptions = ServeInit & FreshOptions;
|
||||
export type StartOptions = ServeInit & FreshOptions & {
|
||||
/**
|
||||
* UNSTABLE: use the `Deno.serve` API as the underlying HTTP server instead of
|
||||
* the `std/http` API. Do not use this in production.
|
||||
*
|
||||
* This option is experimental and may be removed in a future Fresh release.
|
||||
*/
|
||||
experimentalDenoServe?: boolean;
|
||||
};
|
||||
|
||||
export interface FreshOptions {
|
||||
render?: RenderFunction;
|
||||
|
||||
Reference in New Issue
Block a user