Using require to include a relative module in Netlify Functions on Node

Is /shared a special directory from netlify? Didn’t see it anywhere in the docs.
Is there a better solution to this now @Dennis ? Would be a great DX if code import would be bundled automatically by the cli.

Update: With the new cli modern es import and export works now out of the box - no more need for workarounds. @nomadoda

1 Like