How to use secret file in node?

Hi.
I didn’t find any example, nor I couldn’t sort it out by myself - how to use render’s secret file in node application. process.env. returns undefined.

Hi there,

If you define a secret file then it’s mounted in the root path of your service, you still need to load the contents of the file, it’s not loaded into the environment by default. On Node something like dotenv would help here,

Regards,

John B

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.