fix: build

This commit is contained in:
Torsten Dittmann committed 2022-11-14 12:10:10 +01:00
1 parent f687d61b6c
commit 8c03eba2d5
3 files changed
+3 -3

No files matched your search

@@ -26,7 +26,7 @@
export let data: PageData;
const projectId = $page.params.project;
const target = import.meta.env.VITE_APP_DOMAIN_TARGET?.toString();
const target = import.meta.env?.VITE_APP_DOMAIN_TARGET?.toString() ?? '';
let showDelete = false;
let selectedDomain: Models.Domain;
let isVerifying = {};
@@ -10,8 +10,9 @@
TableHeader,
TableRow
} from '$lib/elements/table';
import { domain, target } from './store';
import { domain } from './store';
const target = import.meta.env?.VITE_APP_DOMAIN_TARGET?.toString() ?? '';
$: parts = $domain.domain.split('.');
$: registerable = [parts[parts.length - 2], parts[parts.length - 1]].join('.');
$: cnameValue = $domain.domain.replace('.' + registerable, '');
@@ -2,4 +2,3 @@ import type { Models } from '@aw-labs/appwrite-console';
import { writable } from 'svelte/store';
export const domain = writable<Partial<Models.Domain>>({ $id: '', domain: '' });
export const target = import.meta.env.VITE_APP_DOMAIN_TARGET?.toString();