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