I deployed my client react app and dot net core API on Google Cloud App Engine same service and same version. This is my first time working with App Engine. Usually, when I deploy on IIS I will have a web config to rewrite the Url to using react routing, but seem like URL rewrite is not working with App Engine. Is there any alternative that I can achieve the same results with IIS?
Welcome to App Engine. Google Cloud App Engine Flex does not run IIS, so it does not read the contents of web.config.
I found this article about rewriting middleware for ASP.NET core: https://docs.microsoft.com/en-us/aspnet/core/fundamentals/url-rewriting?view=aspnetcore-2.1&tabs=aspnetcore2x I believe this middleware will let you rewrite urls as you need, but I don't know for sure without your web.config.
An application that uses rewriting middleware instead of web.config will behave the same on IIS and App Engine.
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加