You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to serve a next.js app from inside a node module, to be included as an Express route in a larger application. I can route requests to the next app pretty easily, and server-side rendering works well. However, it gets the links wrong (e.g. linking to /about rather than /<subdir>/about) and the /_next folder is not routed properly which messes up the app.
How would I go about serving a next.js app from a subroute?
The text was updated successfully, but these errors were encountered:
I want to serve a next.js app from inside a node module, to be included as an Express route in a larger application. I can route requests to the next app pretty easily, and server-side rendering works well. However, it gets the links wrong (e.g. linking to
/about
rather than/<subdir>/about
) and the/_next
folder is not routed properly which messes up the app.How would I go about serving a next.js app from a subroute?
The text was updated successfully, but these errors were encountered: