From fc78dc10ba3011c10c6564022b881f00e132fca7 Mon Sep 17 00:00:00 2001 From: jpataky Date: Mon, 19 Jul 2021 15:48:58 +0200 Subject: [PATCH 1/2] [bug] fixed issue when boolean variable from `.env` was parsed as string --- lib/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/main.js b/lib/main.js index 19c2feb..00a0b06 100644 --- a/lib/main.js +++ b/lib/main.js @@ -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 } From 512d8d4c063b7d7dc63ca8696d8dd3203b3723fb Mon Sep 17 00:00:00 2001 From: jpataky Date: Mon, 19 Jul 2021 15:49:41 +0200 Subject: [PATCH 2/2] Modify package version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 50c2745..0fdbe68 100755 --- a/package.json +++ b/package.json @@ -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",