git ssb

0+

Rômulo Alves / website



Commit 5bb525da770fe1c598313238d544b389e0fabaaf

Replaces React by Preact

Rômulo Alves committed on 5/6/2018, 11:16:02 AM
Parent: 05da29162cd94001b87a1366246df608c8a7fa4d

Files changed

server.jschanged
next.config.jsadded
server.jsView
@@ -1,11 +1,12 @@
1 +require('@zeit/next-preact/alias')();
2 +
13 const { createServer } = require('http');
24 const { parse } = require('url');
35 const { createReadStream } = require('fs');
46 const { join } = require('path');
57 const next = require('next');
68
7-
89 const port = parseInt(process.env.PORT, 10) || 3000;
910 const dev = process.env.NODE_ENV !== 'production';
1011 const app = next({ dev });
1112 const handle = app.getRequestHandler();
next.config.jsView
@@ -1,0 +1,3 @@
1 +const withPreact = require('@zeit/next-preact');
2 +
3 +module.exports = withPreact();

Built with git-ssb-web