From 03a9b879fc2689c440e897098c51ce5e9fe5ec7f Mon Sep 17 00:00:00 2001 From: lukestahl Date: Sat, 30 Mar 2024 18:30:42 +0100 Subject: [PATCH] fix pages deploy --- .github/workflows/deploy.yml | 1 - apps/api/src/controller/auth/auth.controller.ts | 6 +++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8a675d6..548ccbc 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -22,7 +22,6 @@ jobs: command: deploy ./src/index.ts --env production - name: Build Web env: - EXPO_PUBLIC_GITHUB_CLIENT_ID: ${{ vars.EXPO_PUBLIC_GITHUB_CLIENT_ID }} EXPO_PUBLIC_API_URL: ${{ vars.EXPO_PUBLIC_API_URL }} EXPO_PUBLIC_GOOGLE_IOS_CLIENT_ID: ${{ vars.EXPO_PUBLIC_GOOGLE_IOS_CLIENT_ID }} EXPO_PUBLIC_GOOGLE_WEB_CLIENT_ID: ${{ vars.EXPO_PUBLIC_GOOGLE_WEB_CLIENT_ID }} diff --git a/apps/api/src/controller/auth/auth.controller.ts b/apps/api/src/controller/auth/auth.controller.ts index 8501aa6..56de0e8 100644 --- a/apps/api/src/controller/auth/auth.controller.ts +++ b/apps/api/src/controller/auth/auth.controller.ts @@ -19,7 +19,11 @@ const AuthController = new Hono() "query", z .object({ - redirect: z.enum(["com.expoluciaauth.app://", "http://localhost:8081"]), + redirect: z.enum([ + "com.expoluciaauth.app://", + "http://localhost:8081", + "https://expo-lucia-auth-example-web.pages.dev", + ]), sessionToken: z.string().optional(), }) .default({ redirect: "http://localhost:8081" })