This is a Next.js project bootstrapped with create-next-app
to solve this problem.
npm install
# or
yarn install
npm run dev
# or
yarn dev
yarn build
yarn start
Open http://localhost:3100 with your browser to see the result.
A live demo can be found here NOTE: live version won't write to output folder per requirement.