Add .env api url

This commit is contained in:
T'JAMPENS QUENTIN p2406187 committed 2025-11-29 01:17:43 +01:00
1 parent 624e8edbe4
commit 3816d3a296
6 files changed
+7 -4

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@ export default async function register(email, password, name, lastname) {
const csrfToken = await getXSRFToken();
try {
const response = await fetch('http://localhost:8000/api/users/register', {
const response = await fetch(`http://${import.meta.env.VITE_API_URL}/api/users/register`, {
method: 'POST',
credentials: 'include',
headers: {