Project

General

Profile

Actions

New Function #512

closed

[APP] URL 설정값 분리

Added by Deca Park 2 months ago. Updated 2 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Start date:
07/10/2024
Due date:
% Done:

0%

Estimated time:
Spent time:

Description

[IM360APP]

1. .env
  - seperate by 2 files (dev/prod)

2.Server URL

  - define URL into env config

  1) INMUN_APP_API_URL
    - dev: https://dev.stoneitgt.com/networkApi/
    - prod: https://inmun360.culture.go.kr/b2bcApi/
  2) INMUN_CHAT_API_URL
    - dev: https://dev.stoneitgt.com/networkChatApi/
    - prod: https://dev.stoneitgt.com/networkChatApi/
  3) INMUN_USER_URL
    - dev: https://dev.stoneitgt.com/networkUser/
    - prod: https://inmun360.culture.go.kr/b2b/

3.replace hard-coding URL with env variable

  1) src\service\connector\index.js
    a) line 3 : ip
      - use INMUN_APP_API_URL
    b) line 4 : webviewIp
      - use INMUN_CHAT_API_URL

  2) src\screens\RegisterRoleSelectPage\index.js
    a) line 34
      - use INMUN_USER_URL

  3) src\screens\RegisterWebviewPage\index.js
    a) line 89
      - use INMUN_APP_API_URL

  4) src\screens\SearchAddressPage\index.js,
     src\screens\ChatPage\index.js,
     src\screens\CreateAttendPage\component\GpsAttend\index.js,
     src\screens\GpsPage\index.js
    a) http://3.39.10.94:8080/
      - use INMUN_CHAT_API_URL

Actions #1

Updated by Deca Park 2 months ago

  • Subject changed from [APP] URL 설정값 정의 to [APP] URL 설정값 분리
Actions #2

Updated by Toby Pham 2 months ago

  • Description updated (diff)
  • Status changed from New to Resolved
  • Assignee changed from Toby Pham to Deca Park
Actions #3

Updated by Deca Park 2 months ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF