Commit 5bb525da770fe1c598313238d544b389e0fabaaf
Replaces React by Preact
Rômulo Alves committed on 5/6/2018, 11:16:02 AMParent: 05da29162cd94001b87a1366246df608c8a7fa4d
Files changed
server.js | changed |
next.config.js | added |
server.js | |||
---|---|---|---|
@@ -1,11 +1,12 @@ | |||
1 … | +require('@zeit/next-preact/alias')(); | ||
2 … | + | ||
1 | 3 … | const { createServer } = require('http'); | |
2 | 4 … | const { parse } = require('url'); | |
3 | 5 … | const { createReadStream } = require('fs'); | |
4 | 6 … | const { join } = require('path'); | |
5 | 7 … | const next = require('next'); | |
6 | 8 … | ||
7 | - | ||
8 | 9 … | const port = parseInt(process.env.PORT, 10) || 3000; | |
9 | 10 … | const dev = process.env.NODE_ENV !== 'production'; | |
10 | 11 … | const app = next({ dev }); | |
11 | 12 … | const handle = app.getRequestHandler(); |
Built with git-ssb-web