How can I useSpa
with a production nodejs server for front-end alongside aspnetcore API?
#29807
Unanswered
NateRadebaugh
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
For react apps, in development we get tight integration between front-end and back-end using
.UseReactDevelopmentServer
. However, this really only supportsreact-scripts
and via.UseSpaStaticFiles
we also get tightly integrated front/back-end.For non-"create-react-app" solutions, we can write a custom extension to look for different startup terminal output, ala https://gist.github.com/alexeyzimarev/f0262426aa38e2c1ed2913252ceb5e7a
However, for non-"create-react-apps" that use more advanced solutions eg using express.js server or the react framework NextJS I don't see a clear solution.
How can I configure aspnetcore to allow me to run my nextjs production front-end with server-side rendering, etc. alongside a aspnetcore backend API?
Beta Was this translation helpful? Give feedback.
All reactions