Determine if on "hosted test" or "published"?

Hello everyone!

Quick question:
Is there a way for the extension (frontend) to determine if it’s running on “hosted test” or actual live, “published”?

Reason is:
I’d like to have my frontend to talk to my staging EBS rather than the production/live one when running on “hosted test”.

Thanks,
-Michael

Hey, yes that’s possible by checking the url query parameter “state”.
See here https://dev.twitch.tv/docs/extensions/reference/#client-query-parameters

Ah, stupid me, how did I miss that…

Thanks a lot!

That being said, that state is on the viewer but not on the live config (dashboard).
Really looking forward to that and theme to get passed into the dashboard config.

Yeah this is a pain for me too. Would appreciate if the live dashboard got sent the state as well.