Sfoglia il codice sorgente

update utils

master
Anna Ho 1 anno fa
parent
commit
473b1c090c
1 ha cambiato i file con 1 aggiunte e 2 eliminazioni
  1. +1
    -2
      src/auth/utils.js

+ 1
- 2
src/auth/utils.js Vedi File

@@ -10,8 +10,7 @@ export const hostname = 'localhost';
const hostPort = '8090';
export const hostPath = `http://${hostname}:${hostPort}`;
//export const apiPath = `http://192.168.0.112:8090/api`;
export const apiPath = window.location.href.match("localhost:3000")?`${hostPath}/api`:`/api`;
//export const apiPath = `/api`;zz
export const apiPath = window.location.href.match("localhost:3000")?`${hostPath}/api`:(window.location.href.match(":3000")? "http://"+window.location.hostname+":8090/api":`/api`);
export const paymentPath = window.location.href.match("localhost:3000")?`${hostPath}/payment`:`/payment`;
export const iAmSmartPath = `https://apigw-isit.staging-eid.gov.hk`;
export const clientId = "cf61fa7c121e4869966f69c8694b1cd2";


Caricamento…
Annulla
Salva