git ssb

0+

Rômulo Alves / website



Commit 9a9e87b1ac89ee650b8ce508a34b0bc139f4ee83

Fixes preact alias and remove images prefetch

Rômulo Alves committed on 5/6/2018, 11:27:48 AM
Parent: 5bb525da770fe1c598313238d544b389e0fabaaf

Files changed

components/social.jschanged
server.jschanged
components/social.jsView
@@ -1,12 +1,6 @@
1-import Head from 'next/head';
2-
31 export default () => (
42 <div className="socials">
5- <Head>
6- <link rel="prefetch" href="/static/images/twitter.svg" />
7- <link rel="prefetch" href="/static/images/github.svg" />
8- </Head>
93 <a href="https://twitter.com/romuloalves" title="Twitter">
104 <img src="/static/images/twitter.svg" alt="Twitter" width="20" height="20" />
115 </a>
126 <a href="https://github.com/romuloalves" title="GitHub">
server.jsView
@@ -1,14 +1,17 @@
1-require('@zeit/next-preact/alias')();
1 +const dev = process.env.NODE_ENV !== 'production';
22
3 +if (!dev) {
4 + require('@zeit/next-preact/alias')();
5 +}
6 +
37 const { createServer } = require('http');
48 const { parse } = require('url');
59 const { createReadStream } = require('fs');
610 const { join } = require('path');
711 const next = require('next');
812
913 const port = parseInt(process.env.PORT, 10) || 3000;
10-const dev = process.env.NODE_ENV !== 'production';
1114 const app = next({ dev });
1215 const handle = app.getRequestHandler();
1316
1417 app.prepare()

Built with git-ssb-web