From a2bf7311e5d797f03c63935db58ab3fb60f8bfed Mon Sep 17 00:00:00 2001 From: Arman Date: Mon, 17 Feb 2025 13:32:40 +0100 Subject: [PATCH] fix: template environment variables --- .../template-[template]/configuration.svelte | 118 ++++++++---------- 1 file changed, 53 insertions(+), 65 deletions(-) diff --git a/src/routes/(console)/project-[project]/sites/create-site/templates/template-[template]/configuration.svelte b/src/routes/(console)/project-[project]/sites/create-site/templates/template-[template]/configuration.svelte index 1a2078191..32a7e8d70 100644 --- a/src/routes/(console)/project-[project]/sites/create-site/templates/template-[template]/configuration.svelte +++ b/src/routes/(console)/project-[project]/sites/create-site/templates/template-[template]/configuration.svelte @@ -64,86 +64,74 @@ return InputPassword; } } - - $: console.log(variables); -
+
{#if requiredVariables?.length} - - Provide the values for the required environment variables to run this - application. - - {#each requiredVariables as variable} + {#each requiredVariables as variable} + - - - - - - -

{variable.description}

-
+ +
- {/each} -
+ + +

{variable.description}

+
+
+ {/each}
{/if} {#if optionalVariables?.length} - - - Set up environment variables to securely manage keys and settings for your - project. - - {#each optionalVariables as variable} + + {#each optionalVariables as variable} + - - - - - - -

{variable.description}

-
+ +
- {/each} -
+ + +

{variable.description}

+
+
+ {/each}
{/if}