How to embed app with public share link only in production mode

Hello,

I need to embed my app to an internal dashboard and my app has two versions production and staging. Now, Sometimes with public access link it opens in production mode and sometimes in staging. I want to fix the view to production mode and I can't figure out how to. If someone could help me with that, that would be great :slight_smile:

The link is generated when you go to share and then when you go to public, you get public access link.

Thanks a lot

:wave: Hey @bittik,

by default, the env is set to production! I believe that if you switch to staging tho and then open the embedded app it will run in a staging env.

Try adding ?_environment=production to the end of the embed URL to force an environment.

Does that work for you ?