From 83321ae731c6e4893c67455464e6379a7c6f01a0 Mon Sep 17 00:00:00 2001 From: szbk Date: Mon, 17 Nov 2025 14:30:32 +0300 Subject: [PATCH] readme update --- README.md | 2 +- src/pages/auth/AuthPage.jsx | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 57bc52f..ac895a9 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ This document describes how the imgPub application converts page photos into a final EPUB book. It covers the frontend wizard, the Node.js backend that performs EPUB generation, and the most important implementation details so new contributors can extend the project confidently. -## 1. Stack Summary +## 1. Stack Summarys | Layer | Technology | Notes | | --- | --- | --- | diff --git a/src/pages/auth/AuthPage.jsx b/src/pages/auth/AuthPage.jsx index dc247a7..7857fb3 100644 --- a/src/pages/auth/AuthPage.jsx +++ b/src/pages/auth/AuthPage.jsx @@ -141,7 +141,9 @@ const AuthPage = ({ mode }) => { } }; - const handleGoogleSignIn = async () => { +const GOOGLE_REDIRECT_URL = import.meta.env.VITE_GOOGLE_REDIRECT_URL || window.location.origin; + +const handleGoogleSignIn = async () => { setFormError(null); setFormMessage(null); if (!supabaseClient) { @@ -153,7 +155,7 @@ const AuthPage = ({ mode }) => { const { error } = await supabaseClient.auth.signInWithOAuth({ provider: 'google', options: { - redirectTo: window.location.origin, + redirectTo: GOOGLE_REDIRECT_URL, }, }); if (error) throw error; @@ -198,7 +200,7 @@ const AuthPage = ({ mode }) => { fontSize: { xs: '1.35rem', md: '1.6rem' }, }} > - imagepub + imagepubs {variant.eyebrow}