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

make clear that server.js doesn't go through Webpack or Babel (#3090)

This commit is contained in:
Sitian Liu 2017-10-14 13:08:30 -04:00 committed by Tim Neutkens
parent 2f6e43f57f
commit 11fe73e9ba

View file

@ -653,6 +653,9 @@ Typically you start your next server with `next start`. It's possible, however,
This example makes `/a` resolve to `./pages/b`, and `/b` resolve to `./pages/a`:
```js
// This file doesn't not go through babel or webpack transformation.
// Make sure the syntax and sources this file requires are compatible with the current node version you are running
// See https://github.com/zeit/next.js/issues/1245 for discussions on Universal Webpack or universal Babel
const { createServer } = require('http')
const { parse } = require('url')
const next = require('next')