Back
>初期設定 - Headless-1

初期設定 - Headless-1

Date: 2021-02-15 01:36
Category : Headless-1

初期設定 - Headless-1


Setup

npm install


Setup , etc

  • next.config.js ,

if change URL, mongodb URL, database name

BASE_URL: "http://localhost:3001"
MONGODB_URL: "mongodb://localhost:27017",
MONGODB_DB_NAME: "hcms",    
  • package.json / scripts

if change, port number ( -p )

"dev": "next dev -p 3001"

Start server

  • Start :
yarn dev
  • if change ,release mode
yarn serve