Skip to content
KeystoneJS LogoKeystoneJS

Next.js app

A KeystoneJS app for serving a Next.js application.

Usage

JS
const { NextApp } = require('@keystonejs/app-next');

module.exports = {
  keystone,
  apps: [
    new GraphQLApp(),
    new AdminUIApp({ enableDefaultRoute: false }),
    new NextApp({ dir: 'app' }),
  ],
  distDir,
};

Config

OptionTypeDefaultRequiredDescription
dirStringnulltrueThe directory of the Next.js app.

On this page

  • Usage
  • Config
Edit on GitHub