Preview Deployments
{application?.name}
{#if application.gitSource?.htmlUrl && application.repository && application.branch} {#if application.gitSource?.type === 'gitlab'} {:else if application.gitSource?.type === 'github'} {/if} {/if}
{#if loading.init}
Loading...
{:else}
Useful for creating staging environments." : "These values overwrite application secrets in PR/MR deployments.
Useful for creating staging environments."} />
(Changed previews process flow in v3.10.4)'} />
{#if applicationSecrets.length !== 0} {#each applicationSecrets as secret} {#key secret.id} s.name === secret.name)} isPRMRSecret name={secret.name} value={secret.value} isBuildSecret={secret.isBuildSecret} on:refresh={refreshSecrets} /> {/key} {/each}
{$t('forms.name')} {$t('forms.value')} {$t('application.preview.need_during_buildtime')} {$t('forms.action')}
{/if}
{#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}
Previews will shown here.
{/if}
{/if}