ckastbjerg / next-type-safe-routes

Never should your users experience broken links again!
MIT License
70 stars 5 forks source link

Types file is written to disc multiple times #10

Open ckastbjerg opened 3 years ago

ckastbjerg commented 3 years ago

For some reason, the types are written multiple times:

image

longlostnick commented 2 years ago

I'm seeing this as well.

ckastbjerg commented 2 years ago

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.