Skip to content

Commit

Permalink
URL updated in authStore.js
Browse files Browse the repository at this point in the history
  • Loading branch information
burakorkmez committed Aug 3, 2024
1 parent db51ade commit 46e235c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/store/authStore.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { create } from "zustand";
import axios from "axios";

const API_URL = "http://localhost:5000/api/auth";
const API_URL = import.meta.env.MODE === "development" ? "http://localhost:5000/api/auth" : "/api/auth";

axios.defaults.withCredentials = true;

Expand Down

0 comments on commit 46e235c

Please sign in to comment.