Azure App Service ENV missing

HRD VERSE 0 Reputation points
2025-02-09T16:52:15.9933333+00:00

I am deploying my Next.js APP in Azure app service. In deployment I got the env missing, so I set them in setting environment variable. But still I am getting same errorUser's image

User's image

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,266 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Deepanshu katara 13,450 Reputation points MVP
    2025-02-10T05:32:52.8666667+00:00

    Hello, Welcome to MS Q&A

    In your application code, access the environment variable using process.env.firebase_private_key. This allows your application to read the value of firebase_private_key at runtime.

    By following these steps, you ensure that your application can securely access the necessary environment variables, avoiding errors related to missing API keys.

    Please accept answer if it helps

    Kindly check and let us know if any questions.

    Thanks

    Deepanshu


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.