Next.js Discord

Discord Forum

Why do we need .env file in NextJS project?

Unanswered
sourab posted this in #help-forum
Open in Discord
I have a decoupled solution and my frontend is on NextJS and backend is on Drupal and also using Razorpay on my nextjs project for payment gateway. My question is do I need to put all the secret/private keys used for Razorpay in .env file or can I use Drupal for setting up the keys for my frontend and then use them in Razorpay API calls?

0 Replies