Ng应用与代理配置 – 为什么ng serve不运行代理文件

huangapple go评论59阅读模式
英文:

Ng app with Proxy Config - Why ng serve not run Proxy file

问题

I add proxy config JSON file , but it's not work
我添加了代理配置JSON文件,但它不起作用

I don't see the NPM Proxy Logs ("proxy rewrite rule create...") in the run 'ng serve'
我在运行'ng serve'时看不到NPM代理日志("proxy rewrite rule create...")

I think that maybe because the my "Proxy config" file is in gray ?!
我认为可能是因为我的"代理配置"文件是灰色的?

Does anyone know of such a problem?
有人知道这样的问题吗?

proxy config file
代理配置文件

The my file is gray:
我的文件是灰色的:

英文:

I add proxy config JSON file , but it's not work
I don't see the NPM Proxy Logs ("proxy rewrite rule create...") in the run 'ng serve'
I think that maybe because the my "Proxy config" file is in gray ?!
Does anyone know of such a problem?

proxy config file

Ng应用与代理配置 – 为什么ng serve不运行代理文件

Ng应用与代理配置 – 为什么ng serve不运行代理文件

The my file is gray:
Ng应用与代理配置 – 为什么ng serve不运行代理文件

答案1

得分: 0

我犯了一个错误,将路径中的Http写成了https。
看一看,也许你的路径中也有错误。

英文:

It turns out that I made a mistake in the Path and put Http instead of https.
Take a look, maybe you too have a mistake in the Path

huangapple
  • 本文由 发表于 2023年6月5日 04:27:24
  • 转载请务必保留本文链接:https://go.coder-hub.com/76402286.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定