This example show how you can use Next.js with Carlo. Here we use a Custom server to fit the carlo configs.
Execute create-next-app
with npm or Yarn to bootstrap the example:
npm init next-app --example with-carlo with-carlo-app
# or
yarn create next-app --example with-carlo with-carlo-app
Download the example:
curl https://codeload.github.com/zeit/next.js/tar.gz/canary | tar -xz --strip=2 next.js-canary/examples/with-carlo
cd with-carlo
Install it and run:
npm install
npm run dev
# or
yarn
yarn dev
npm run build
npm start