-
+
+
+
+
Edit {isGlobal ? 'global' : 'environment'} variables below or download as a
.{tab} file.
-
-
-
- (tab = 'env')}
- disabled={tab === 'env'}>
+
+
+ (tab = 'env')} active={tab === 'env'}>
ENV
-
- (tab = 'json')}
- disabled={tab === 'json'}>
+
+ (tab = 'json')} active={tab === 'json'}>
JSON
-
-
+
+
-
- {#if tab === 'env'}
-
- {:else if tab === 'json'}
-
- {/if}
-
-
-
+ {#if tab === 'env'}
+
+ {:else if tab === 'json'}
+
+ {/if}
+
+
+
+
+
+
+
+
diff --git a/src/routes/(console)/project-[project]/sites/create-site/manual/+page.svelte b/src/routes/(console)/project-[project]/sites/create-site/manual/+page.svelte
index 19fbd8ca6..2e2e3dafb 100644
--- a/src/routes/(console)/project-[project]/sites/create-site/manual/+page.svelte
+++ b/src/routes/(console)/project-[project]/sites/create-site/manual/+page.svelte
@@ -3,7 +3,7 @@
import { base } from '$app/paths';
import { page } from '$app/stores';
import { Submit, trackError, trackEvent } from '$lib/actions/analytics';
- import { Button, Form } from '$lib/elements/forms';
+ import { Button, Form, Label } from '$lib/elements/forms';
import { Wizard } from '$lib/layout';
import { addNotification } from '$lib/stores/notifications';
import { sdk } from '$lib/stores/sdk';
@@ -98,7 +98,22 @@
undefined
);
- trackEvent(Submit.SiteCreate, {});
+ trackEvent(Submit.SiteCreate, {
+ source: 'manual',
+ framework: framework.key
+ });
+
+ //Add variables
+ await Promise.all(
+ Object.keys(variables).map(async (key) => {
+ await sdk.forProject.sites.createVariable(
+ site.$id,
+ key,
+ variables[key].value,
+ variables[key].secret
+ );
+ })
+ );
const { deployments } = await sdk.forProject.sites.listDeployments(site.$id, [
Query.limit(1)
@@ -129,26 +144,29 @@
confirmExit>