Skip to content

Commit

Permalink
Merge pull request #2 from truesteps/env-boolean-issue
Browse files Browse the repository at this point in the history
Env boolean issue
  • Loading branch information
truesteps committed Jul 19, 2021
2 parents df1fe08 + 512d8d4 commit 33d3051
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const getWebsiteLock = ({ options, ctx, storage }) => {
},

async checkIfUserCanRedirect () {
if (!process.env.WEB_SITE_LOCK_ENABLED) {
if (!JSON.parse(process.env.WEB_SITE_LOCK_ENABLED)) {
return true
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nuxt-website-lock",
"version": "0.1.10",
"version": "0.1.11",
"description": "Add a middleware to be able to lock pages behind a password",
"repository": {
"type": "git",
Expand Down

0 comments on commit 33d3051

Please sign in to comment.