diff --git a/packages/vike-node/README.md b/packages/vike-node/README.md index 9aa75cb..3ba34a2 100644 --- a/packages/vike-node/README.md +++ b/packages/vike-node/README.md @@ -5,9 +5,10 @@ # `vike-node` -Node integration for Vike. +Server integration for Vike. + +With this extension, your server code is transpiled with Vite. -With this extension, your server-side code is transpiled with Vite.
In development, the server process is restarted when a change is detected in some of your server files. [Installation](#installation) @@ -49,7 +50,7 @@ In development, the server process is restarted when a change is detected in som function startServer() { const app = express() app.use(vike()) - const port = process.env.PORT || 3000 + const port = 3000 app.listen(port, () => console.log(`Server running at http://localhost:${port}`)) } ``` @@ -155,7 +156,7 @@ startServer() function startServer() { const app = express() app.use(vike()) - const port = process.env.PORT || 3000 + const port = 3000 app.listen(port, () => console.log(`Server running at http://localhost:${port}`)) } ``` @@ -173,7 +174,7 @@ startServer() function startServer() { const app = fastify() app.all('/*', vike()) - const port = +(process.env.PORT || 3000) + const port = 3000 app.listen({ port }, () => console.log(`Server running at http://localhost:${port}`)) } ``` @@ -192,7 +193,7 @@ startServer() function startServer() { const app = new Hono() app.use(vike()) - const port = +(process.env.PORT || 3000) + const port = 3000 serve( { fetch: app.fetch, @@ -217,7 +218,7 @@ startServer() async function startServer() { const app = createApp() app.use(vike()) - const port = process.env.PORT || 3000 + const port = 3000 const server = createServer(toNodeListener(app)).listen(port) server.on('listening', () => { console.log(`Server running at http://localhost:${port}`) @@ -238,7 +239,7 @@ startServer() function startServer() { const app = new Elysia() app.get('/*', vike()) - const port = +(process.env.PORT || 3000) + const port = 3000 app.listen(port, () => console.log(`Server running at http://localhost:${port}`)) } ```