So I have an .env file with api key inside of it:
API_KEY = {apikey}
And I'm trying to use it in app.js file:
const API_KEY = process.env.API_KEY;
console.log(API_KEY);
And I get the next error:
Uncaught ReferenceError: process is not defined
I'm not using node.js so I guess there's some way it couldn't work.