I’ve tried requiring shared utility-type modules that live outside my functions directory and get a Error: Cannot find module '../utils'
message when the function is run after being deployed. Interestingly, the error is not thrown when running the function locally using netlify dev
.
I was wondering if this is expected or if it should be possible to require modules that are outside the functions directory.