feat: move to Deno.serve (#1427)
Co-authored-by: Marvin Hagemeister <marvin@deno.com>
This commit is contained in:
co-authored by
Marvin Hagemeister
parent
46ae49d654
commit
e2a1bf8643
@@ -17,19 +17,10 @@ export async function start(routes: Manifest, opts: StartOptions = {});
|
||||
things get interesting. `StartOptions` looks like this:
|
||||
|
||||
```
|
||||
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 type StartOptions = ServeInit & FreshOptions;
|
||||
```
|
||||
|
||||
You can play around with `Deno.serve` if you'd like, but heed the warning. The
|
||||
good stuff is really in...
|
||||
The good stuff is really in...
|
||||
|
||||
```ts
|
||||
export interface FreshOptions {
|
||||
|
||||
Reference in New Issue
Block a user