❔ .NET 7 + React deployment concept?
I am having a hard time understanding the google cloud deployment method. Let's say I created an app with
dotnet new react
, now I have an API and inside the folder there is ClientApp. I need a docker image too. But here is the part I have no idea about;
How do I deploy them together? Or do I host them seperately? How can I have them both in the same url? Do I need docker image for react app? It's bundled so I don't think I need one. If yes, both of them get the same image? So many questions, I just need to understand the concept.
edit: dotnet publish --os linux --arch x64 -p:PublishProfile=DefaultContainer
& npm run build
I also used these. I just saw ClientApp as wwwroot inside bin/../publish2 Replies