ionic-team / ionic-team/ionic-cli

after changing ionic.config.json the file is not refreshed

未關閉
#3,072 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
TypeScript
星號
2k
分支
682
PR 合併指標
30 天內沒有已合併 PR

描述

**Description:**

after using ionic serve the ionic.config.json is not being refreshed. I have set these values in the file
{
"name": "MyIonicProject",
"app_id": "",
"type": "ionic-angular",
"integrations": {
"cordova": {}
},
"proxies": [{
"path": "/data/",
"proxyUrl": "http://localhost/data/"
},{
"path": "/login/",
"proxyUrl": "http://api.fcmsoft.com/account/"
}]
}

but /login/ is not being changed it keeps remembering the old path in the proxyUrl.

**My `ionic info`:**

```
cli packages: (C:\Users\themhz\AppData\Roaming\npm\node_modules)

@ionic/cli-utils : 1.19.2
ionic (Ionic CLI) : 3.20.0

global packages:

cordova (Cordova CLI) : not installed

local packages:

@ionic/app-scripts : 3.1.8
Cordova Platforms : ios 4.5.4
Ionic Framework : ionic-angular 3.9.2

System:

Node : v8.9.1
npm : 6.0.0-next.0
OS : Windows 10

Environment Variables:

ANDROID_HOME : not set

Misc:

backend : pro
```

**Other Information:**

貢獻指南

開啟貢獻指南

研究方向

Start by reproducing the issue with the repository's ionic serve entry point and an edited ionic.config.json containing the /login/ proxy. Trace how ionic serve loads or caches the proxy configuration, then verify that changing proxyUrl is reflected without retaining the old path.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
typescript
領域
cli
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。