How to use Smart Hub Preview on hosted smart tv application?

I checked the documentation and I couldn’t see any topic about that. We are not using index html as content src on the config.xml therefore we don’t have a chance to run main.js code. How we can implement public preview is there anyway?