serve build npm node js code example
Example: serve build node npm
# in terminal cd to project root dir
# to build project:
npm run build
# to serve/host project locally:
serve -s ./build
# in terminal cd to project root dir
# to build project:
npm run build
# to serve/host project locally:
serve -s ./build