Skip to content

Instantly share code, notes, and snippets.

@potato4d
Created October 4, 2018 08:42
Show Gist options
  • Select an option

  • Save potato4d/284bfde411b22596ef9584e110ebe15f to your computer and use it in GitHub Desktop.

Select an option

Save potato4d/284bfde411b22596ef9584e110ebe15f to your computer and use it in GitHub Desktop.
Nuxt.js アプリケーションに簡単にベーシック認証を付与できる nuxt-basic-auth-module のご紹介 ref: https://qiita.com/potato4d/items/e37d9acf320d7c1b327c
$ yarn add nuxt-basic-auth-module
module.exports = {
// ...
modules: [
'nuxt-basic-auth-module'
],
basic: {
name: 'admin',
pass: 'password',
enabled: process.env.ENABLE_BASIC_AUTH === 'true'
}
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment