Browse Source

:wrench: add icp code support

Jeremy Zheng 2 years ago
parent
commit
d777e34749
3 changed files with 3 additions and 0 deletions
  1. 1 0
      dashboard/.env.orig
  2. 1 0
      deploy/mint.yml
  3. 1 0
      deploy/roles/mint-v2/templates/v1/config.js.j2

+ 1 - 0
dashboard/.env.orig

@@ -12,3 +12,4 @@ REACT_APP_DOCUMENTS_SERVER=https://documents.wikipali.org
 REACT_APP_RPC_SERVER=https://rpc.wikipali.org
 REACT_APP_ASSETS_SERVER=https://assets.wikipali.org
 REACT_APP_API_SERVER=https://www.wikipali.org
+REACT_APP_ICP_CODE=

+ 1 - 0
deploy/mint.yml

@@ -20,6 +20,7 @@
         REACT_APP_RPC_SERVER: "{{ app_rpc_server }}"
         REACT_APP_ASSETS_SERVER: "{{ app_assets_server }}"
         REACT_APP_API_SERVER: "{{ app_api_server }}"
+        REACT_ICP_CODE: "{{ app_icp_code }}"
         REACT_APP_TOKEN_KEY: "token.20230919"
 
 - hosts: www

+ 1 - 0
deploy/roles/mint-v2/templates/v1/config.js.j2

@@ -1,3 +1,4 @@
+var ICP_CODE = "{{ app_icp_code }}"
 var RPC_SERVER = "{{ app_rpc_server }}";
 var DOCUMENTS_SERVER = "{{ app_documents_server }}"