refactor(env): consolidate BACKEND_URL imports in GoogleLoginButton and DocumentTabContent

This commit is contained in:
Anish Sarkar 2026-05-21 00:54:22 +05:30
parent 7a0de6d377
commit 6e27f63d85
2 changed files with 2 additions and 5 deletions

View file

@ -3,9 +3,9 @@ import { useTranslations } from "next-intl";
import { useState } from "react";
import { Logo } from "@/components/Logo";
import { Button } from "@/components/ui/button";
import { BACKEND_URL } from "@/lib/env-config";
import { trackLoginAttempt } from "@/lib/posthog/events";
import { AmbientBackground } from "./AmbientBackground";
<<<<<<< HEAD
function GoogleGLogo({ className }: { className?: string }) {
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() {
const t = useTranslations("auth");
const [isRedirecting, setIsRedirecting] = useState(false);

View file

@ -10,7 +10,7 @@ import { Alert, AlertDescription } from "@/components/ui/alert";
import { Button } from "@/components/ui/button";
import { Spinner } from "@/components/ui/spinner";
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
interface DocumentContent {