React Storefront

Password Protecting Your Preproduction Environments using Basic Auth

If you want to ensure that your preproduction environments aren't viewable by the general public, you can enable basic authentication by adding the following to the moov_config-*.json file corresponding to the environment you want to protect:

// moov_config-staging.json

  "credentials": {
    "user": "some-username",
    "password": "some-password"

Simply add the above to your moov_config-*.json file, redeploy your site, and you'll see the browser prompt for the username and password the next time you visit your site.