diff --git a/.frontend_env.example b/.frontend_env.example index 14a58eebd..ad1045fcc 100644 --- a/.frontend_env.example +++ b/.frontend_env.example @@ -1,2 +1,2 @@ -ENV=local +NEXT_PUBLIC_ENV=local NEXT_PUBLIC_BACKEND_URL=http://localhost:5050 diff --git a/frontend/.env.example b/frontend/.env.example index 2e53056be..3eb96a895 100644 --- a/frontend/.env.example +++ b/frontend/.env.example @@ -1,2 +1,2 @@ -ENV=local +NEXT_PUBLIC_ENV=local BACKEND_URL="http://localhost:5050" \ No newline at end of file diff --git a/frontend/app/(home)/page.tsx b/frontend/app/(home)/page.tsx index 233a4488f..8f7904f51 100644 --- a/frontend/app/(home)/page.tsx +++ b/frontend/app/(home)/page.tsx @@ -3,7 +3,7 @@ import Hero from "./Hero"; import { redirect } from "next/navigation"; export default function HomePage() { - if (process.env.ENV === "local") { + if (process.env.NEXT_PUBLIC_ENV === "local") { redirect("/upload"); } diff --git a/frontend/app/components/NavBar/index.tsx b/frontend/app/components/NavBar/index.tsx index db3670c2f..b5308ff75 100644 --- a/frontend/app/components/NavBar/index.tsx +++ b/frontend/app/components/NavBar/index.tsx @@ -47,7 +47,7 @@ const NavBar: FC = ({}) => { />

Quivr

- {process.env.ENV === "local" ? ( + {process.env.NEXT_PUBLIC_ENV === "local" ? (