sensitive file
Is it safe to store a sensitive file in the src (not under "public") directory? Can't seem to find any docs on this. Basically I need that file when a function runs so I run this code:
fs.readFileSync(path.join(process.cwd(), "", "sensitiveFile.text"));
4 Replies
What's in the sensitive file? It should not be commited to your repostiory - if it's secrets like your database URL it should be stored in environment variables
It’s a binary file
What about the binary file is sensitive? How big is the binary file? What are you doing with the binary file?
Do not want people to download to use it. 200Kb. Using it for digital signature. The GitHub repo is private