Skip to content
KeystoneJS LogoKeystoneJSv5

Next.js App

A KeystoneJS App for serving a Next.js application.

Usage

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.

Have you found a mistake, something that is missing, or could be improved on this page? Please edit the Markdown file on GitHub and submit a PR with your changes.

Edit Page