-
So, I know that Fastify kinda "compiles" route and plugins for fast access before listening to request. However, it can be a bit frustrating during development. I don't really care that response are fast or not when I'm developing it in local. I wanted to know if you guys had an idea/solution/anything to make hot reload work during development? (like, in less than a second) (In any case, thanks so much to the whole team, you guys rock ❤️) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
What kind of setup do you have? Js or Ts? I personnaly use nodemon with TS and it's like 10s-15s. Which is acceptable regarding the stack involved. |
Beta Was this translation helpful? Give feedback.
-
I just add this message in case someone is looking to reduce startup speed during development: You can just disable type checking (which remains active on your IDE of course), and it will drastically reduce startup time. Example: > ts-node --transpileOnly src/index.ts
> ts-node -T src/index.ts cf https://typestrong.org/ts-node/docs/options/#transpileonly |
Beta Was this translation helpful? Give feedback.
I just add this message in case someone is looking to reduce startup speed during development:
You can just disable type checking (which remains active on your IDE of course), and it will drastically reduce startup time.
For this, just use the
transpileOnly
flag (shortcutT
) on ts-node or nodemon.Example:
cf https://typestrong.org/ts-node/docs/options/#transpileonly