Allow adding or editing a storefront git repo from the Websites domain editor.

Provision uses the same websites-VM agent as Businesses; DNS still goes through Arvan ensureTenantRecords.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-08-31 16:32:20 +03:30
co-authored by Cursor
parent cda901d049
commit 5813e9fc53
2 changed files with 85 additions and 5 deletions
@@ -1,4 +1,5 @@
import { IsBoolean, IsDateString, IsOptional, IsString, MinLength } from 'class-validator';
import { IsBoolean, IsDateString, IsOptional, IsString, Matches, MinLength } from 'class-validator';
import { GIT_REPO_URL_RE } from '../../website-deploy/website-deploy.util';
export class UpdateDomainAdminDto {
@IsOptional()
@@ -14,4 +15,13 @@ export class UpdateDomainAdminDto {
@IsOptional()
@IsBoolean()
updateDns?: boolean;
/** HTTPS or SSH git URL — when set, provisions storefront deploy on the websites VM. */
@IsOptional()
@IsString()
@Matches(GIT_REPO_URL_RE, {
message:
'gitRepoUrl must be a git URL (e.g. https://git.meshkee.com/Meshkee-Websites/oaktasty.git)',
})
gitRepoUrl?: string;
}