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:
parent
c6d3484a21
commit
125aaf8834
|
@ -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"));
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue