Usage npx basic-auth-static-server /path/to/your/static-website
Everything is based on environment variables. This works out of the box with heroku too!
No environment variables are needed for the static server to work.
BASIC_AUTH_USERNAME
BASIC_AUTH_PASSWORD
STATIC_INDEX_FILE
is optional, default is index.html
PORT
is optional, default is 3000
--single
Enables SPA mode by always serving your index file.