From c0b4e6219d9257d8475e60d8a551ecad6ebff9fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Fri, 16 Aug 2024 20:09:40 +0200 Subject: [PATCH] fix: auth --- .github/workflows/ci.yml | 2 ++ nuxt.config.ts | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 76d24bb..773da27 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,3 +34,5 @@ jobs: env: NUXT_HUB_PROJECT_KEY: ${{ secrets.NUXT_HUB_PROJECT_KEY}} NUXT_HUB_USER_TOKEN: ${{ secrets.NUXT_HUB_USER_TOKEN }} + GH_AUTH: 1 + GOOGLE_AUTH: 1 diff --git a/nuxt.config.ts b/nuxt.config.ts index b5fdae4..e077162 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -14,8 +14,8 @@ export default defineNuxtConfig({ }, runtimeConfig: { public: { - githubAuth: Boolean(process.env.NUXT_OAUTH_GITHUB_CLIENT_ID && process.env.NUXT_OAUTH_GITHUB_CLIENT_SECRET), - googleAuth: Boolean(process.env.NUXT_OAUTH_GOOGLE_CLIENT_ID && process.env.NUXT_OAUTH_GOOGLE_CLIENT_SECRET), + githubAuth: Boolean(process.env.GH_AUTH || (process.env.NUXT_OAUTH_GITHUB_CLIENT_ID && process.env.NUXT_OAUTH_GITHUB_CLIENT_SECRET)), + googleAuth: Boolean(process.env.GOOGLE_AUTH || (process.env.NUXT_OAUTH_GOOGLE_CLIENT_ID && process.env.NUXT_OAUTH_GOOGLE_CLIENT_SECRET)), }, }, // Development modules