Created
October 4, 2018 08:42
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ yarn add nuxt-basic-auth-module |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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