Skip to content

Instantly share code, notes, and snippets.

View victor36max's full-sized avatar

Victor Chan victor36max

View GitHub Profile
// Start Next app
app.prepare()
 .then(() => {
    
  // Setup common locals for your templates. The following are required for the
  // bundled templates and layouts. Any runtime locals (that should be set uniquely
  // for each request) should be added to ./routes/middleware.js
  keystone.set('locals', {
 _: require('lodash'),
@victor36max
victor36max / keystone-next-example-block-1.md
Last active April 7, 2018 12:31
keystone-next-example code blocks
// Next app 
const next = require('next'); 
const dev = process.env.NODE_ENV !== 'production'; 
const app = next({ dev });