mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
Fix hostname check
This commit is contained in:
1 parent
831f162010
commit
e0ab5522da
1 file changed
+3
-2
@@ -144,7 +144,8 @@ ${prefix}APPWRITE_PUBLIC_ENDPOINT = "${sdk.forProject.client.config.endpoint}"
|
||||
$: selectedFrameworkIcon = selectedFramework ? selectedFramework.icon : NoFrameworkIcon;
|
||||
|
||||
async function createWebPlatform() {
|
||||
hostnameError = !new RegExp(hostnameRegex).test(hostname);
|
||||
hostnameError = hostname !== '' ? !new RegExp(hostnameRegex).test(hostname) : null;
|
||||
|
||||
if (hostnameError) {
|
||||
return;
|
||||
}
|
||||
@@ -157,7 +158,7 @@ ${prefix}APPWRITE_PUBLIC_ENDPOINT = "${sdk.forProject.client.config.endpoint}"
|
||||
`${selectedFramework.label} app`,
|
||||
selectedFrameworkKey,
|
||||
undefined,
|
||||
hostname
|
||||
hostname === '' ? undefined : hostname
|
||||
);
|
||||
|
||||
isPlatformCreated = true;
|
||||
|
||||
Reference in new issue
Block a user