resolution register
Deploy Nexus Portal to HestiaCP (FTP) / build-and-deploy (push) Successful in 18s
Deploy Nexus Portal to HestiaCP (FTP) / build-and-deploy (push) Successful in 18s
This commit is contained in:
@@ -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
@@ -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({
|
||||||
|
|||||||
Reference in New Issue
Block a user