Add .env api url
This commit is contained in:
1 parent
624e8edbe4
commit
3816d3a296
6 files changed
+7
-4
No files matched your search
@@ -1,6 +1,6 @@
|
||||
export default async function getUser() {
|
||||
try {
|
||||
const res = await fetch('http://localhost:8000/api/me', {
|
||||
const res = await fetch(`http://${import.meta.env.VITE_API_URL}/api/users/me`, {
|
||||
method: 'GET',
|
||||
credentials: 'include',
|
||||
headers: {
|
||||
|
||||
Reference in new issue
Block a user