Commit 125aaf88 authored by Luis Fernando Alvarez D's avatar Luis Fernando Alvarez D Committed by Tim Neutkens

Small fix in serverless docs (#6146)

parent c6d3484a
...@@ -1639,7 +1639,7 @@ For example if the platform supports the Node.js [`http.Server`](https://nodejs. ...@@ -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"));
``` ```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment