Cook

Work with local version of NextJS

Initialize

  • in a different shell

    # source helpers 
    . bootstrap/scripts/helpers.sh
    # change registry to local endpoint
    setRegLocal
    # run local endpoint
    verdaccio
    

git clone $NEXTJS_REPO .next
cd .next
yarn

Export

yarn export
[[ -d ../docs ]] && rm -r ../docs
mv out ../docs 
touch ../docs/.nojekyll
  • when checking with github
git add . && git commit -m "update" && git push