IpsokaOriginal post
Rank 2: Process
Title. Should I give these through env variables or can I just hardcode them in my function wihtout having to worry
Summary
Question: Is it safe to hardcode database ID and collection ID in a function?
Answer: It is generally safe to hardcode database and collection IDs in a function, as long as the code is not publicly exposed. However, it is best practice to use environment variables for these IDs, especially if you plan to share your code or host it on a version control system. This allows for easier configuration and flexibility in different environments.