#How exactly should the server utils directory be used

7 messages · Page 1 of 1 (latest)

tired valve
#

If I make a file called server/utils/db.ts, how exactly should I export the util functions. Will it be auto imported for my server middleware and apis? The docs don't really have an example for me to go off of. Thanks :)

supple cloak
#

I have to explicitly import my util for all my server routes FYI

#

Example :

#

Hope that helps

tired valve