mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-25 19:15:18 +02:00
refactor(env): streamline BACKEND_URL usage in GoogleLoginButton and DocumentTabContent; update connector-status-config for Composio Google Drive connector maintenance
This commit is contained in:
parent
5c4da79da4
commit
1a4400c923
3 changed files with 7 additions and 5 deletions
|
|
@ -5,7 +5,7 @@ import { Logo } from "@/components/Logo";
|
||||||
import { Button } from "@/components/ui/button";
|
import { Button } from "@/components/ui/button";
|
||||||
import { trackLoginAttempt } from "@/lib/posthog/events";
|
import { trackLoginAttempt } from "@/lib/posthog/events";
|
||||||
import { AmbientBackground } from "./AmbientBackground";
|
import { AmbientBackground } from "./AmbientBackground";
|
||||||
<<<<<<< HEAD
|
import { BACKEND_URL } from "@/lib/env-config";
|
||||||
|
|
||||||
function GoogleGLogo({ className }: { className?: string }) {
|
function GoogleGLogo({ className }: { className?: string }) {
|
||||||
return (
|
return (
|
||||||
|
|
@ -35,9 +35,6 @@ function GoogleGLogo({ className }: { className?: string }) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
=======
|
|
||||||
import { BACKEND_URL } from "@/lib/env-config";
|
|
||||||
>>>>>>> 1127aedb4 (refactor(env): replace inline process.env reads with BACKEND_URL in editor, chat, dashboard and settings)
|
|
||||||
export function GoogleLoginButton() {
|
export function GoogleLoginButton() {
|
||||||
const t = useTranslations("auth");
|
const t = useTranslations("auth");
|
||||||
const [isRedirecting, setIsRedirecting] = useState(false);
|
const [isRedirecting, setIsRedirecting] = useState(false);
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,11 @@
|
||||||
"enabled": false,
|
"enabled": false,
|
||||||
"status": "maintenance",
|
"status": "maintenance",
|
||||||
"statusMessage": "Rework in progress."
|
"statusMessage": "Rework in progress."
|
||||||
|
},
|
||||||
|
"COMPOSIO_GOOGLE_DRIVE_CONNECTOR": {
|
||||||
|
"enabled": false,
|
||||||
|
"status": "maintenance",
|
||||||
|
"statusMessage": "Temporarily unavailable due to an upstream Composio bug (ComposioHQ/composio#3471) that returns malformed presigned URLs for Drive file downloads. Use the native Google Drive connector in the meantime."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"globalSettings": {
|
"globalSettings": {
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ import { Alert, AlertDescription } from "@/components/ui/alert";
|
||||||
import { Button } from "@/components/ui/button";
|
import { Button } from "@/components/ui/button";
|
||||||
import { Spinner } from "@/components/ui/spinner";
|
import { Spinner } from "@/components/ui/spinner";
|
||||||
import { authenticatedFetch, getBearerToken, redirectToLogin } from "@/lib/auth-utils";
|
import { authenticatedFetch, getBearerToken, redirectToLogin } from "@/lib/auth-utils";
|
||||||
import { BACKEND_URL, BACKEND_URL } from "@/lib/env-config";
|
import { BACKEND_URL } from "@/lib/env-config";
|
||||||
const LARGE_DOCUMENT_THRESHOLD = 2 * 1024 * 1024; // 2MB
|
const LARGE_DOCUMENT_THRESHOLD = 2 * 1024 * 1024; // 2MB
|
||||||
|
|
||||||
interface DocumentContent {
|
interface DocumentContent {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue