Secret Variables
So for the past couple days I've been trying to setup a way for my Components to do API calls without exposing the Application api key. I've tried .env variables, either through my own .env file or through pterodactyl's .env, no success.
Now I'm trying to do an API call to a php file in my blueprint extension and always 404 file not found, tried multiple file paths, public/private, nothing works for that. Grantend I'm not very experienced with php so it could be wrong. But here's my php file:
1 Reply
And I call it using ApiKeys.ts:
In my main component I have this:
I am probably doing something wrong, or missing something simpler. But I've tried the ways I can think of, and can't ever get it working.