New Function #512
Updated by Toby Pham 8 months ago
<p class="nitefall_processed" style="color: rgb(204, 204, 204) !important; background-color: rgba(0, 0, 0, 0) !important;">[IM360APP]</p> <p>[IM360APP]</p> <p class="nitefall_processed" style="color: rgb(204, 204, 204) !important; background-color: rgba(0, 0, 0, 0) !important;"><strong class="nitefall_processed" style="color: rgb(204, 204, 204) !important; background-color: rgba(0, 0, 0, 0) !important;">1. <p><strong>1. .env</strong><br /> - seperate by 2 files (dev/prod)</p> <p class="nitefall_processed" style="color: rgb(204, 204, 204) !important; background-color: rgba(0, 0, 0, 0) !important;"><strong class="nitefall_processed" style="color: rgb(204, 204, 204) !important; background-color: rgba(0, 0, 0, 0) !important;">2.Server <p><strong>2.Server URL</strong></p> <p class="nitefall_processed" style="color: rgb(204, 204, 204) !important; background-color: rgba(0, 0, 0, 0) !important;"> <p> - define URL into env config<br /> <br /> 1) <strong class="nitefall_processed" style="color: rgb(204, 204, 204) !important; background-color: rgba(0, 0, 0, 0) !important;">INMUN_APP_API_URL</strong><br <strong>INMUN_APP_API_URL</strong><br /> - dev: https://dev.stoneitgt.com/networkApi/<br /> - prod: https://inmun360.culture.go.kr/b2bcApi/<br /> 2) <strong class="nitefall_processed" style="color: rgb(204, 204, 204) !important; background-color: rgba(0, 0, 0, 0) !important;">INMUN_CHAT_API_URL</strong><br <strong>INMUN_CHAT_API_URL</strong><br /> - dev: https://dev.stoneitgt.com/networkChatApi/<br /> - prod: https://dev.stoneitgt.com/networkChatApi/<br /> 3) <strong class="nitefall_processed" style="color: rgb(204, 204, 204) !important; background-color: rgba(0, 0, 0, 0) !important;">INMUN_USER_URL</strong><br <strong>INMUN_USER_URL</strong><br /> - dev: https://dev.stoneitgt.com/networkUser/<br /> - prod: https://inmun360.culture.go.kr/b2b/</p> <p class="nitefall_processed" style="color: rgb(204, 204, 204) !important; background-color: rgba(0, 0, 0, 0) !important;">3.<strong class="nitefall_processed" style="color: rgb(204, 204, 204) !important; background-color: rgba(0, 0, 0, 0) !important;">replace <p>3.<strong>replace hard-coding URL with env variable</strong></p> <p class="nitefall_processed" style="color: rgb(204, 204, 204) !important; background-color: rgba(0, 0, 0, 0) !important;"> <p> 1) src\service\connector\index.js<br /> a) line 3 : ip<br /> - use INMUN_APP_API_URL<br /> b) line 4 : webviewIp<br /> - use INMUN_CHAT_API_URL<br /> <br /> 2) src\screens\RegisterRoleSelectPage\index.js<br /> a) line 34<br /> - use INMUN_USER_URL<br /> <br /> 3) src\screens\RegisterWebviewPage\index.js<br /> a) line 89<br /> - use INMUN_APP_API_URL<br /> <br /> 4) src\screens\SearchAddressPage\index.js,<br /> src\screens\ChatPage\index.js,<br /> src\screens\CreateAttendPage\component\GpsAttend\index.js,<br /> src\screens\GpsPage\index.js<br /> a) http://3.39.10.94:8080/<br /> - use INMUN_CHAT_API_URL</p>