1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00
next.js/test
Tim Neutkens 07c6e2852f
Export render instead of default for serverless target (#5979)
Extends on #5927, instead of `.default` we'll expose `.render` which is semantically more correct / mirrors the naming of the custom server API.

I've updated the spec in #5927 to reflect this change.

(copied from #5927):

```js
const http = require('http')
const page = require('./.next/serverless/about.js')
const server = new http.Server((req, res) => page.render(req, res))
server.listen(3000, () => console.log('Listening on http://localhost:3000'))
```
2019-01-02 14:59:28 +01:00
..
integration Export render instead of default for serverless target (#5979) 2019-01-02 14:59:28 +01:00
isolated Serverless Next.js (#5927) 2018-12-28 11:39:12 +01:00
lib Serverless Next.js (#5927) 2018-12-28 11:39:12 +01:00
unit Use Typescript to transpile Next.js core files instead of Babel (#5747) 2018-11-28 15:03:02 +01:00
.babelrc Use preset-react's development option + enable modules transform in test env (#5081) 2018-09-03 16:41:52 +02:00
.gitignore Universal Webpack (#3578) 2018-01-30 16:44:44 +01:00
jest-global-setup.js Refactor test setup (#5391) 2018-10-12 15:32:17 +02:00
jest-global-teardown.js Refactor test setup (#5391) 2018-10-12 15:32:17 +02:00