hi i faced non logical error after build angular project and publish in IIS Server this error doesn't appear in development phase what is that and how to solve it note: i started new project for test (abp new projectName -u angular) and faced same error
- ABP Framework version: v8.3 && v8.0
- UI Type: Angular
7 Answer(s)
-
0
-
0
-
0
-
0
Hi, do you have web.config in your angular prod folder ? If yes can you please add a custom rule for getEnvConfig endpoint like below
<system.webServer> <rewrite> <rules> <rule name="Redirect" stopProcessing="true"> <match url="getEnvConfig" /> <action type="Redirect" url="dynamic-env.json" /> </rule> </rules> </rewrite> </system.webServer>
-
0
Can confirm we are also seeing this problem but it seems like the source of it has been identified.
-
0
Hi, do you have web.config in your angular prod folder ? If yes can you please add a custom rule for getEnvConfig endpoint like below
<system.webServer> <rewrite> <rules> <rule name="Redirect" stopProcessing="true"> <match url="getEnvConfig" /> <action type="Redirect" url="dynamic-env.json" /> </rule> </rules> </rewrite> </system.webServer>
Why would there be a web.config in an Angular application?
-
0
Because if you gonna publish ng app to IIS, IIS needs web.config
It is deployment step requirements. I'll try to get dynamic-env during first request.