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?
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hi @Urs_Boller
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
Hi @Urs_Boller
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
Hi @SarahXu that's what I assumed I need to do. My use case is having a router where one route (screen) is access restricted. means when calling the screen, I need to invoke an action which returns true or false for access. Is there any other way I can make a part of the app with access restriction? eg. by checking a "product profile id" or something similar?
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes