1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Small fix in serverless docs (#6146)

This commit is contained in:
Luis Fernando Alvarez D 2019-01-26 18:24:11 -05:00 committed by Tim Neutkens
parent c6d3484a21
commit 125aaf8834

View file

@ -1639,7 +1639,7 @@ For example if the platform supports the Node.js [`http.Server`](https://nodejs.
```js
const http = require("http");
const page = require("./.next/serverless/about.js");
const page = require("./.next/serverless/pages/about.js");
const server = new http.Server((req, res) => page.render(req, res));
server.listen(3000, () => console.log("Listening on http://localhost:3000"));
```