🐛 Fix VITE_API_URL reference
This commit is contained in:
1 parent
faca98b7f9
commit
3e457de416
5 files changed
+5
-4
No files matched your search
@@ -1,7 +1,7 @@
|
||||
import { ApolloClient, InMemoryCache } from "@apollo/client";
|
||||
|
||||
const client = new ApolloClient({
|
||||
uri: import.meta.env.VITE_API_URL || "http://localhost:8000/graphql/",
|
||||
uri: `${import.meta.env.VITE_API_URL}/graphql/`,
|
||||
cache: new InMemoryCache(),
|
||||
});
|
||||
|
||||
|
||||
@@ -8,9 +8,7 @@ import { NavLink } from "react-router-dom";
|
||||
import { ReactComponent as Logo } from "../assets/brick.svg";
|
||||
import styles from "./Header.module.css";
|
||||
|
||||
const ADMIN_URL = import.meta.env.VITE_API_URL
|
||||
? `${import.meta.env.VITE_API_URL}/admin`
|
||||
: "http://localhost:8000/admin/";
|
||||
const ADMIN_URL = `${import.meta.env.VITE_API_URL}/admin`;
|
||||
|
||||
const navLinkStyles = ({ isActive }: { isActive: boolean }) => (isActive ? "nav-link active" : "nav-link");
|
||||
|
||||
|
||||
Reference in new issue
Block a user