Im gonna ask a newbish question, but does anyone e...
# graphql-nexus
j
Im gonna ask a newbish question, but does anyone else have relatievly slow startup times when it comes to starting up their Express server? Using dev servers (Nodemon), it may take something like 20-30 seconds for each restart to get the server up and running. I somewhat wonder if it may have to do with the generation of the
nexus/schema
(
_shouldGenerateArtifacts_: _true_,
), but I cant be too certain if it is related. Anyone ever dealt with debugging startup times?
s
can you try using this package I made called Nodehawk? https://github.com/samrith-s/nodehawk
j
I will have a try Samrith, thanks!
r
@Jonathan you can also exclude files that are not needed or include those just needed. For e.g. it might be watching your entire project and all you just need to to watch your
src
folder. In my experience it has never taken 20-30 seconds for each restart so this might be the case.
j
Hey Ryan, its good to know that this is not a nexus-related problem then. I do watch the
src
folder only, which means I likely need to think of other reasons why the server would have such a slow startup time (if my stack is express/ apollo server/ nexus-schema / prisma)
I suppose I will look in other directions and see if I can debug it that way
Thanks in any case 🙂
🙌 1