From d9425dae937a6ac5a74546e7d0952d98ccdf201b Mon Sep 17 00:00:00 2001 From: ReaperMaga Date: Thu, 14 Mar 2024 08:41:03 +0100 Subject: [PATCH] Added the possibility to use the environment variable AUTH_BASE_URL instead of nuxt.config/js --- src/module.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/module.ts b/src/module.ts index f10a35ee..f41fe472 100644 --- a/src/module.ts +++ b/src/module.ts @@ -109,7 +109,7 @@ export default defineNuxtModule({ // 0. Assemble all options const { origin, pathname = '/api/auth' } = getOriginAndPathnameFromURL( - userOptions.baseURL ?? '' + process.env.AUTH_BASE_URL ? process.env.AUTH_BASE_URL : userOptions.baseURL ?? '' ) const selectedProvider = userOptions.provider?.type ?? 'authjs'