瀏覽代碼

update utils

master
Anna Ho 1 年之前
父節點
當前提交
473b1c090c
共有 1 個檔案被更改,包括 1 行新增2 行删除
  1. +1
    -2
      src/auth/utils.js

+ 1
- 2
src/auth/utils.js 查看文件

@@ -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";


Loading…
取消
儲存