bencao / netlify-plugin-inline-functions-env

Inline build time environment variable values into netlify function code so that it becomes available at runtime
MIT License
42 stars 10 forks source link

Functions directory using other name than "functions" #56

Open 1-800-jono opened 8 months ago

1-800-jono commented 8 months ago

Hi, plugin is failing and I think it might be because my serverless functions are in a directory called lambdas instead of functions. Could that be it? Error:

Could not list Netlify Functions files
Functions folders do not exist: /opt/build/repo/.netlify/functions-internal, /opt/build/repo/lambda
1-800-jono commented 8 months ago

added buildEvent = "onBuild" and now got another cryptic error:

Plugin exited with exit code null and signal SIGABRT.
The plugin might have exited due to a bug terminating the process, such as an infinite loop.
The plugin might also have explicitly terminated the process, for example with process.exit().
Plugin methods should instead:
on success: return
on failure: call utils.build.failPlugin() or utils.build.failBuild()