3 ms·
I've been using Next.js (with typescript) a lot and API routes always felt slightly wrong to me, since matching the types involved in the requests between clien
by carpenecopinum 4y ago
I've been using Next.js (with typescript) a lot and API routes always felt slightly wrong to me, since matching the types involved in the requests between client and server is always mostly manual and thus error-prone.
I found myself thinking "Too bad Next.js does API handling itself, so I won't be able to use this tool easily", but then I saw that they already took care of that: https://gravity.digitak.dev/docs/frameworks/next https://gravity.digitak.dev/docs/frameworks/next .
So I might actually end up using this. Thanks for sharing it here!
- GinQuin 4y agoYour welcome, I hope you will enjoy it! I just released a fix for React/Next stores, so make sure you are using the latest Gravity version ;)