Environment variable static app

yannick 21 Reputation points
2021-12-22T17:15:11.71+00:00

We have a vueJs app deployed as static web app in azure.
I am not able to get an Env variable like that : this.pk = process.env.STRIPE_PK;

I tried to put env variable in github action deployment, in azure env variables too..

Someone can help on that?

Thank you.

Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
1,173 questions
{count} votes

1 answer

Sort by: Most helpful
  1. yannick 21 Reputation points
    2021-12-22T17:52:07.333+00:00

    I tried to call my variable VUE_APP_STRIPE_PK but same issue
    IntegrationError: Missing value for Stripe(): apiKey should be a string.


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.