access .env variables in web-src?

ursboller

MVP

12-09-2020

is it possible to access the data saved in the .env file within the app? eg. I have a screen and I want to access data saved in the .env file - basically to make a check. or do I really need to write an action for this?

Accepted Solutions (1)

Accepted Solutions (1)

SarahXu

15-09-2020

Hi @ursboller 

 

You would need to pass that info in through your action. You can pass in the value from .env into your action. Then have the action return these values to be consumed by your frontend code. 

 

Hope this helps,

Sarah

Answers (0)