From 30eb6732aaf909c195a0ed11daa25c927740eeb3 Mon Sep 17 00:00:00 2001 From: star knight <64941905+starknt@users.noreply.github.com> Date: Mon, 20 May 2024 12:41:19 +0800 Subject: [PATCH 1/2] fix: preset `node` example --- docs/2.deploy/10.runtimes/1.node.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/2.deploy/10.runtimes/1.node.md b/docs/2.deploy/10.runtimes/1.node.md index 170ebb29e8..ce69dc5d62 100644 --- a/docs/2.deploy/10.runtimes/1.node.md +++ b/docs/2.deploy/10.runtimes/1.node.md @@ -63,7 +63,7 @@ When running `nitro build` with the Node preset, the result will be an entry poi ```js import { createServer } from 'node:http' -import handler from './.output/server' +import { handler } from './.output/server' const server = createServer(handler) server.listen(8080) From acbde493cf71a77954a2e052747870f10579c3fd Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Tue, 21 May 2024 17:48:45 +0200 Subject: [PATCH 2/2] Apply suggestions from code review --- docs/2.deploy/10.runtimes/1.node.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/2.deploy/10.runtimes/1.node.md b/docs/2.deploy/10.runtimes/1.node.md index ce69dc5d62..2797d7c3ef 100644 --- a/docs/2.deploy/10.runtimes/1.node.md +++ b/docs/2.deploy/10.runtimes/1.node.md @@ -63,8 +63,8 @@ When running `nitro build` with the Node preset, the result will be an entry poi ```js import { createServer } from 'node:http' -import { handler } from './.output/server' +import { listener } from './.output/server' -const server = createServer(handler) +const server = createServer(listener) server.listen(8080) ```