File tree Expand file tree Collapse file tree 7 files changed +10
-10
lines changed
organization-[organization]/domains
project-[region]-[project]
functions/function-[function]/domains/add-domain/verify-[domain]
settings/domains/add-domain/verify-[domain]
sites/site-[site]/domains/add-domain/verify-[domain] Expand file tree Collapse file tree 7 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 41
41
let selectedDomain: Models .Domain = null ;
42
42
43
43
const isDomainVerified = (domain : Models .Domain ) => {
44
- return domain .nameservers .toLocaleLowerCase () === ' appwrite' ;
44
+ return domain .nameservers .toLowerCase () === ' appwrite' ;
45
45
};
46
46
</script >
47
47
Original file line number Diff line number Diff line change 8
8
let { domain, retryVerification }: { domain: Models .Domain ; retryVerification: () => void } =
9
9
$props ();
10
10
11
- const isDomainVerified = domain .nameservers .toLocaleLowerCase () === ' appwrite' ;
11
+ const isDomainVerified = domain .nameservers .toLowerCase () === ' appwrite' ;
12
12
13
13
const metrics = [
14
14
{
29
29
},
30
30
{
31
31
value:
32
- domain ?.registrar ?.toLocaleLowerCase () === ' appwrite'
32
+ domain ?.registrar ?.toLowerCase () === ' appwrite'
33
33
? domain ?.autoRenewal
34
34
? ' On'
35
35
: ' Off'
Original file line number Diff line number Diff line change 35
35
async function verifyStatus() {
36
36
try {
37
37
domain = await sdk .forConsole .domains .updateNameservers (domain .$id );
38
- verified = domain .nameservers === ' Appwrite ' ;
38
+ verified = domain .nameservers . toLowerCase () === ' appwrite ' ;
39
39
if (verified ) {
40
40
addNotification ({
41
41
type: ' success' ,
Original file line number Diff line number Diff line change 23
23
try {
24
24
const domain = await sdk .forConsole .domains .updateNameservers (selectedDomain .$id );
25
25
show = false ;
26
- if (domain .nameservers === ' Appwrite ' ) {
26
+ if (domain .nameservers . toLowerCase () === ' appwrite ' ) {
27
27
addNotification ({
28
28
type: ' success' ,
29
29
message: ` ${selectedDomain .domain } has been verified `
Original file line number Diff line number Diff line change 63
63
$organization .$id ,
64
64
page .params .domain
65
65
);
66
- verified = domainData .nameservers .toLocaleLowerCase () === ' appwrite' ;
66
+ verified = domainData .nameservers .toLowerCase () === ' appwrite' ;
67
67
} else if (! isNewDomain && isCloud ) {
68
68
const domain = await sdk .forConsole .domains .updateNameservers (domainId );
69
- verified = domain .nameservers === ' Appwrite ' ;
69
+ verified = domain .nameservers . toLowerCase () === ' appwrite ' ;
70
70
if (! verified )
71
71
throw new Error (
72
72
' Domain verification failed. Please check your domain settings or try again later'
Original file line number Diff line number Diff line change 64
64
$organization .$id ,
65
65
page .params .domain
66
66
);
67
- verified = domainData .nameservers .toLocaleLowerCase () === ' appwrite' ;
67
+ verified = domainData .nameservers .toLowerCase () === ' appwrite' ;
68
68
} else if (! isNewDomain && isCloud ) {
69
69
const domain = await sdk .forConsole .domains .updateNameservers (domainId );
70
- verified = domain .nameservers === ' Appwrite ' ;
70
+ verified = domain .nameservers . toLowerCase () === ' appwrite ' ;
71
71
if (! verified )
72
72
throw new Error (
73
73
' Domain verification failed. Please check your domain settings or try again later'
Original file line number Diff line number Diff line change 66
66
$organization .$id ,
67
67
page .params .domain
68
68
);
69
- verified = domainData .nameservers .toLocaleLowerCase () === ' appwrite' ;
69
+ verified = domainData .nameservers .toLowerCase () === ' appwrite' ;
70
70
throw new Error (
71
71
' Domain verification failed. Please check your domain settings or try again later'
72
72
);
You can’t perform that action at this time.
0 commit comments