next-type-safe-routes icon indicating copy to clipboard operation
next-type-safe-routes copied to clipboard

Types file is written to disc multiple times

Open ckastbjerg opened this issue 3 years ago • 2 comments

For some reason, the types are written multiple times:

image

ckastbjerg avatar Apr 07 '21 20:04 ckastbjerg

I'm seeing this as well.

longlostnick avatar Mar 12 '22 03:03 longlostnick

Did a quick search. It's simply because it's run once for the server, once for the client. Guessing we can just run when the option isServer is true.

ckastbjerg avatar Mar 22 '22 22:03 ckastbjerg