diff options
Diffstat (limited to 'cli/bench/http/deno_reactdom_ssr_flash.jsx')
-rw-r--r-- | cli/bench/http/deno_reactdom_ssr_flash.jsx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/cli/bench/http/deno_reactdom_ssr_flash.jsx b/cli/bench/http/deno_reactdom_ssr_flash.jsx index 571545b27..0d749c634 100644 --- a/cli/bench/http/deno_reactdom_ssr_flash.jsx +++ b/cli/bench/http/deno_reactdom_ssr_flash.jsx @@ -19,8 +19,11 @@ const headers = { }; serve( - async () => { - return new Response(await renderToReadableStream(<App />), headers); + { + fetch: async () => { + return new Response(await renderToReadableStream(<App />), headers); + }, + hostname, + port, }, - { hostname, port }, ); |