root 2 years ago
parent
commit
ada11aa2c1
3 changed files with 9 additions and 9 deletions
  1. 4 4
      .env.development
  2. 4 4
      .env.production
  3. 1 1
      src/excalidraw-app/data/firebase.ts

+ 4 - 4
.env.development

@@ -1,10 +1,10 @@
-REACT_APP_BACKEND_V2_GET_URL=https://beta.iwb.cocorobo.cn/api/v2/
-REACT_APP_BACKEND_V2_POST_URL=https://beta.iwb.cocorobo.cn/api/v2/post/
+REACT_APP_BACKEND_V2_GET_URL=https://iwb.cocorobo.hk/api/v2/
+REACT_APP_BACKEND_V2_POST_URL=https://iwb.cocorobo.hk/api/v2/post/
 
 REACT_APP_LIBRARY_URL=https://libraries.excalidraw.com
 REACT_APP_LIBRARY_BACKEND=https://us-central1-excalidraw-room-persistence.cloudfunctions.net/libraries
 
-REACT_APP_SOCKET_SERVER_URL=https://beta.iwb.cocorobo.cn
+REACT_APP_SOCKET_SERVER_URL=https://iwb.cocorobo.hk
 
-REACT_APP_FIREBASE_CONFIG='{"apiKey":"AIzaSyAd15pYlMci_xIp9ko6wkEsDzAAA0Dn0RU","authDomain":"beta.iwb.cocorobo.cn","databaseURL":"https://excalidraw-room-persistence.firebaseio.com","projectId":"excalidraw-room-persistence","storageBucket":"beta.iwb.cocorobo.cn/api/v2/","messagingSenderId":"654800341332","appId":"1:654800341332:web:4a692de832b55bd57ce0c1"}'
+REACT_APP_FIREBASE_CONFIG='{"apiKey":"AIzaSyAd15pYlMci_xIp9ko6wkEsDzAAA0Dn0RU","authDomain":"iwb.cocorobo.hk","databaseURL":"https://excalidraw-room-persistence.firebaseio.com","projectId":"excalidraw-room-persistence","storageBucket":"iwb.cocorobo.hk/api/v2/","messagingSenderId":"654800341332","appId":"1:654800341332:web:4a692de832b55bd57ce0c1"}'
 

+ 4 - 4
.env.production

@@ -1,11 +1,11 @@
-REACT_APP_BACKEND_V2_GET_URL=https://beta.iwb.cocorobo.cnapi/v2/
-REACT_APP_BACKEND_V2_POST_URL=https://beta.iwb.cocorobo.cnapi/v2/post/
+REACT_APP_BACKEND_V2_GET_URL=https://iwb.cocorobo.hkapi/v2/
+REACT_APP_BACKEND_V2_POST_URL=https://iwb.cocorobo.hkapi/v2/post/
 
 REACT_APP_LIBRARY_URL=https://libraries.excalidraw.com
 REACT_APP_LIBRARY_BACKEND=https://us-central1-excalidraw-room-persistence.cloudfunctions.net/libraries
 
-REACT_APP_SOCKET_SERVER_URL=https://beta.iwb.cocorobo.cn
-REACT_APP_FIREBASE_CONFIG='{"apiKey":"AIzaSyAd15pYlMci_xIp9ko6wkEsDzAAA0Dn0RU","authDomain":"beta.iwb.cocorobo.cn","databaseURL":"https://excalidraw-room-persistence.firebaseio.com","projectId":"excalidraw-room-persistence","storageBucket":"beta.iwb.cocorobo.cn/api/v2/","messagingSenderId":"654800341332","appId":"1:654800341332:web:4a692de832b55bd57ce0c1"}'
+REACT_APP_SOCKET_SERVER_URL=https://iwb.cocorobo.hk
+REACT_APP_FIREBASE_CONFIG='{"apiKey":"AIzaSyAd15pYlMci_xIp9ko6wkEsDzAAA0Dn0RU","authDomain":"iwb.cocorobo.hk","databaseURL":"https://excalidraw-room-persistence.firebaseio.com","projectId":"excalidraw-room-persistence","storageBucket":"iwb.cocorobo.hk/api/v2/","messagingSenderId":"654800341332","appId":"1:654800341332:web:4a692de832b55bd57ce0c1"}'
 
 # production-only vars
 REACT_APP_GOOGLE_ANALYTICS_ID=UA-387204-13

+ 1 - 1
src/excalidraw-app/data/firebase.ts

@@ -261,7 +261,7 @@ export const loadFilesFromFirebase = async (
   await Promise.all(
     [...new Set(filesIds)].map(async (id) => {
       try {
-        const url = `https://beta.iwb.cocorobo.cn/api/v2/${
+        const url = `https://iwb.cocorobo.hk/api/v2/${
           FIREBASE_CONFIG.storageBucket
         }/o/${encodeURIComponent(prefix.replace(/^\//, ""))}%2F${id}`;
         const response = await fetch(`${url}?alt=media`);