Open ryanflorence opened 2 months ago
I've started looking into this as part of https://github.com/remix-run/react-router/issues/11646 since I'm moving @react-router/server-runtime
to react-router/server
(TBD).
Would you accept a PR to export createRemixRequest and sendRemixResponse from @react-router/express?
These are the only deep imports we use. We use them for our custom express adapter that automatically commits the session cookie as in @sergiodxa's article:
Note: The createRemixRequestHandler, createRemixRequest, handleRequest and sendRemixResponse are all exported from @remix-run/express/dist/server. https://sergiodxa.com/tutorials/automatically-commit-session-on-remix
PR: https://github.com/remix-run/react-router/pull/11675
We want to keep this working:
But not have to copy the
./dist/server.js
file out ofdist
into the root./server.js