Open BigAB opened 7 years ago
: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.
Also note that done-serve is a development server. I'm wary of adding features that might cause people to depend on it, and use it in production.
@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 ?
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...