Skip to content

Latest commit

 

History

History
47 lines (30 loc) · 449 Bytes

README.md

File metadata and controls

47 lines (30 loc) · 449 Bytes

Fastify+Next.js Sample

Installation

yarn install

Usage

DEV ENVIRONMENT

  1. Change line 2 in index.js to:
const dev = false;
  1. Run in cmd
node index.js
  1. DEV url: http://localhost:3000/sample

PROD ENVIRONMENT

  1. Change line 2 in index.js to:
const dev = true;
  1. Run in cmd:
yarn next build
  1. Run in cmd
node index.js
  1. PROD url: http://localhost/sample