Next.js Discord

Discord Forum

How to make more reusable code

Unanswered
Yacare Caiman posted this in #help-forum
Open in Discord
Yacare CaimanOP
Has anyone experienced that when calling an external API they have 700 endpoints with duplicate code? Any advice to solve it? I am using swr and nextjs api folder
I want to automate so that there is no duplicate code but I don't know how to do it

0 Replies