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))