From 7c2cb5a4cd926ceb9daba67718a415ce8d541d67 Mon Sep 17 00:00:00 2001 From: Mike Fix Date: Sun, 10 Sep 2017 16:49:10 -0700 Subject: [PATCH] Add Gist example and fix /about bug. Closes #6 --- pages/about.js | 2 +- server.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pages/about.js b/pages/about.js index c124778..97a1b41 100644 --- a/pages/about.js +++ b/pages/about.js @@ -17,7 +17,7 @@ export default () => (

There are a few different ways to import code into Carbon:

Customization

diff --git a/server.js b/server.js index 427c62a..aae0468 100644 --- a/server.js +++ b/server.js @@ -20,6 +20,9 @@ app.prepare() server.use(morgan('tiny')) + server.get('/about', (req, res) => + app.render(req, res, '/about')) + // if root, render webpage from next server.get('*', (req, res) => app.render(req, res, '/', req.query))