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 don't know if this is a common issue, but right now I needed to start a DoneJS app, and I need to add one little middleware to the project. (in this case an custom-auth middleware)
So, currently, to make that work, and still enjoy the benefits of the live-reloading, server-rendering, SPA'ing done-serve stuff, I basically had to copy-pasta all the done-serve code into a server.js file, and run that instead. Not horrible, but I feel it would be a lot cooler if I could just set some config or something donejs add middleware my-middleware and have it work out for me.
I know it doesn't have this right now but...
The text was updated successfully, but these errors were encountered:
:D Another alternative would be to spin off the live-reload and other stuff into some type of middlewary thing that could be consumed more easily without the copy pasting.
@matthewp@BigAB wouldnt the proxy feature be here the right method? create a little express middelware server and then use the proxy option over that ?
With the new version of done-serve (3.0) you can provide a configure function which allows you to directly insert middleware. This is what place-my-order does now. However this needs to be documented.
I don't know if this is a common issue, but right now I needed to start a DoneJS app, and I need to add one little middleware to the project. (in this case an custom-auth middleware)
So, currently, to make that work, and still enjoy the benefits of the live-reloading, server-rendering, SPA'ing
done-serve
stuff, I basically had to copy-pasta all thedone-serve
code into aserver.js
file, and run that instead. Not horrible, but I feel it would be a lot cooler if I could just set some config or somethingdonejs add middleware my-middleware
and have it work out for me.I know it doesn't have this right now but...
The text was updated successfully, but these errors were encountered: