Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

access .env variables in web-src?

Avatar

Avatar
Coach
MVP
ursboller
MVP

Likes

516 likes

Total Posts

1,016 posts

Correct Reply

254 solutions
Top badges earned
Coach
Contributor
Bedrock
View profile

Avatar
Coach
MVP
ursboller
MVP

Likes

516 likes

Total Posts

1,016 posts

Correct Reply

254 solutions
Top badges earned
Coach
Contributor
Bedrock
View profile
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?

View Entire Topic

Avatar

Avatar
Give Back 3
Level 2
SarahXu
Level 2

Likes

7 likes

Total Posts

33 posts

Correct Reply

5 solutions
Top badges earned
Give Back 3
Give Back
Boost 5
Boost 3
Boost 1
View profile

Avatar
Give Back 3
Level 2
SarahXu
Level 2

Likes

7 likes

Total Posts

33 posts

Correct Reply

5 solutions
Top badges earned
Give Back 3
Give Back
Boost 5
Boost 3
Boost 1
View profile
SarahXu
Level 2

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