When I try to access my .env file inside my index.js it works. But inside checkout.js it doesn't work. What is the reason & How to fix ? here is my folder structure
When I use process.env.VARIABLE_NAME inside my index.js it returns the correct value. But when I use process.env.VARIABLE_NAME inside my checkout.js it returns undefined.