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 ```js
const http = require("http"); 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)); const server = new http.Server((req, res) => page.render(req, res));
server.listen(3000, () => console.log("Listening on http://localhost:3000")); server.listen(3000, () => console.log("Listening on http://localhost:3000"));
``` ```