{#each variables as variable, index} {@const source = getSource(variable.key)} {@const isVarRequired = isRequired(variable.key)} {@const isVarOptional = isOptional(variable.key)} {@const isVarMissing = isMissing(variable.key)} {@const isVarUnused = isUnused(variable.key)}
{#if showSource}
{#if source === 'file'}

From .env file

{:else if source === 'override'}

Manual override

{/if}
{/if} {#if validation}
{#if variable.key} {#if isVarRequired && !isVarMissing}

Required variable defined

{:else if isVarOptional}

Optional variable (has default)

{:else if isVarUnused}

Unused variable

{/if} {/if}
{/if}
Name
Value
{#if !readonly} {@const existingSecret = isExistingSecret(variable.key, variable.isSecret)} {#if existingSecret}
{:else} {/if} {:else if variable.isSecret}
{/if} {#if !readonly} {/if}
{/each} {#if variables.length === 0}

No environment variables defined.

{#if !readonly} {/if}
{/if}