Commit 11fe73e9 authored by Sitian Liu's avatar Sitian Liu Committed by Tim Neutkens

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

parent 2f6e43f5
...@@ -653,6 +653,9 @@ Typically you start your next server with `next start`. It's possible, however, ...@@ -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`: This example makes `/a` resolve to `./pages/b`, and `/b` resolve to `./pages/a`:
```js ```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 { createServer } = require('http')
const { parse } = require('url') const { parse } = require('url')
const next = require('next') const next = require('next')
......
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