Create a preview link for my app

Hello All

I have an application that was approved. I am trying to create a preview link. How do I get that ? I am reading the doc but I think I am missing something


Preview links start as a link to your app’s install page. Using the YouTube app as an example, here is a link to the install page: https://www.cloudflare.com/apps/youtube/install

best regards
Assim Addous

Let’s say I want to install youtube app. When I click on preview button

I’d be redirected to preview page but how can developer set some variables for using in preview mode?

Or changing default dummy URL (https://typical.design/)?

You can pass that options through a URL encoded string in your app URL:
https://www.cloudflare.com/apps/yourapp/install?options=encodeddata

Written as JavaScript, the procedure for creating a Cloudflare Preview Link becomes:

function createCloudflareLink (appAlias, options) {
  var optionsString = encodeURIComponent(JSON.stringify(options))

  return 'https://www.cloudflare.com/apps/' + appAlias + '/install?options=' + optionsString
}

thanks for your quick reply. My question is
https://www.cloudflare.com/apps//install
where do I get yourapp ? Is that app alias in app configuration

The docs were not that clear but I have figured it out.
the app alias from app configuration will be used in your preview link