resolution register
Deploy Nexus Portal to HestiaCP (FTP) / build-and-deploy (push) Successful in 18s

This commit is contained in:
2026-06-12 23:35:47 +02:00
parent 48793034b1
commit 10c7cfc7b0
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -1,2 +1,3 @@
# Ici, on force React à tirer sur le bon domaine une fois en ligne ! # Ici, on force React à tirer sur le bon domaine une fois en ligne !
VITE_API_BASE_URL=https://web.gise.be/index.php?_url= VITE_API_BASE_URL=https://web.gise.be/index.php?_url=
VITE_CUSTOM_API_BASE_URL=https://web.gise.be
+2 -1
View File
@@ -1,4 +1,5 @@
const BASE_URL = import.meta.env.VITE_API_BASE_URL || ''; const BASE_URL = import.meta.env.VITE_API_BASE_URL || '';
const CUSTOM_API_BASE_URL = import.meta.env.VITE_CUSTOM_API_BASE_URL || '';
const apiCall = async (url, body = null) => { const apiCall = async (url, body = null) => {
// Configuration de base pour l'appel réseau // Configuration de base pour l'appel réseau
@@ -53,7 +54,7 @@ export const getProductList = () =>
export const registerUnifiedClient = async (email, username, password, firstName, lastName) => { export const registerUnifiedClient = async (email, username, password, firstName, lastName) => {
try { try {
// Utilisation des backticks ici aussi ! // Utilisation des backticks ici aussi !
const response = await fetch(`${BASE_URL}/custom_api/signup.php`, { const response = await fetch(`${CUSTOM_API_BASE_URL}/custom_api/signup.php`, {
method: 'POST', method: 'POST',
headers: { 'Content-Type': 'application/json' }, headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ body: JSON.stringify({