Allow storefront provision when editing a domain git URL.

Edit Domain can wire deploy_slug the same way as Add Domain so existing businesses get a Deploy button without recreating the domain.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-08-08 14:18:31 +03:30
co-authored by Cursor
parent d933aef40b
commit 7d123502f8
2 changed files with 70 additions and 5 deletions
+10 -1
View File
@@ -1,7 +1,16 @@
import { IsString, MinLength } from 'class-validator';
import { IsOptional, IsString, Matches, MinLength } from 'class-validator';
export class UpdateDomainDto {
@IsString()
@MinLength(1)
host!: string;
/** SSH git URL — when set, provisions storefront deploy on the websites VM. */
@IsOptional()
@IsString()
@Matches(/^(?:git@[\w.-]+:[\w./-]+\.git|ssh:\/\/git@[\w.-]+(?::\d+)?\/[\w./-]+\.git)$/i, {
message:
'gitRepoUrl must be an SSH git URL (e.g. git@git.meshkee.com:Meshkee-Websites/oaktasty.git)',
})
gitRepoUrl?: string;
}