Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Netlify Build Plugin: Secured Site with Basic Auth

Secure the site with Basic Auth.

Usage

Installing from your project's code

Install manually by adding the following lines to the project's netlify.toml file.

Reference for the netlify.toml can be found here

[[plugins]]
  package = "../netlify-build-plugins/netlify-plugin-gatsby-cache"

  [plugins.inputs]
    userEnvKey = 'AUTH_USER' # optional
    passEnvKey = 'AUTH_PASS' # optional
    branches = 'staging,stage' # optional
    pullRequest = true # optional. Default is true.

Inputs

userEnvKey - specify the environment key for the username (optional)

passEnvKey - specify the environment key for the password (optional)

branches - comma-separated string of branches to be secured

pullRequest - secure the deploy-preview build

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages