Hi, all! This is my first post on the Glitch forums, so if I screwed something up, please let me know.
I have a simple question: can I reliably use a .data folder to store sensitive configuration files? I’m only asking this because I haven’t been able to get .env to reliably work.
If you think it is a code issue, look below. If it is not that, feel free to ask!
Step 1: refresh your application. Run the refresh command in your project terminal.
Step 2: Use one of the usage examples to get the env var:
JavaScript:
@beckettnormington just so you know you can only access env vars with node.js and sending a GET request to a slug that begins in a . (we are using .data) will return Forbidden.
Hey, I just wanna say, the Solution button is for marking which answer solved your problem which lets other people with the same problem find the answer easily without having to search through a bunch of conversation. It looks like you didn’t find your answer yet and people might think you already have and won’t attempt to help you.
Also, I say things for the future as well, Not everyone knows how to use the forum and @beckettnormington is new to the forums so I explained the solution button?