What's the best way to bulk require files in node on Zeit/Next? #4076
Unanswered
techwraith
asked this question in
General
Replies: 1 comment 1 reply
-
@techwraith I'm not sure if I fully understand the question. Did you try doing this and run into an error? It would also help if you had a minimal repo that shows the pattern you're describing. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a directory full of small modules that all take the same arguments and return the same format. I would like to use something like bulk-require (https://www.npmjs.com/package/bulk-require) to pull them all in to one of my API routes in my Next application.
Is this possible? What's the best way to achieve this?
Beta Was this translation helpful? Give feedback.
All reactions