-
Current behaviourhttps://zeit.co/docs/runtimes#advanced-usage/technical-details/including-additional-files const file = readFileSync(join(__dirname, 'config', 'ci.yml'), 'utf8');
// The use of __dirname is necessary to read a file relative to the current file. Better behaviouruse require.resolve const file = readFileSync(require.resolve('./config/ci.yml'), 'utf8'); What is not good about itIt already works at |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Thanks for the suggestion! cc @styfle |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Yep. It was a mistake of mine - I was trying to read something from |
Beta Was this translation helpful? Give feedback.
Yep. It was a mistake of mine - I was trying to read something from
public
directory, which does not exist for functions.See #4010