Preview Deployments
{#if loading.init}
Loading...
{:else if application.previewApplication.length > 0}
{#each application.previewApplication as preview}
{#await getStatus(preview)} {:then} {#if status[preview.id] === 'running'} {:else} {/if} {/await}

PR #{preview.pullmergeRequestId} {#if status[preview.id] === 'building'} BUILDING {/if}

{preview.customDomain.replace('https://', '').replace('http://', '')}

{#if preview.customDomain} {/if} Open Preview {#if loading.restart} {:else} {/if} Restart (useful to change secrets) Force redeploy (without cache) Delete Preview
{/each}
{:else} No previews found. {/if}