Make project template (mkstack itself) configurable in System Settings

This commit is contained in:
Alex Gleason committed 2025-10-08 15:13:15 -05:00
1 parent 1432e968bc
commit b5039c76f8
10 files changed
+55 -6

No files matched your search

+2 -5
View File
@@ -9,9 +9,6 @@ if (typeof window !== 'undefined') {
(window as { Buffer?: typeof Buffer }).Buffer = Buffer;
}
// const GIT_TEMPLATE_URL = 'https://relay.ngit.dev/npub1q3sle0kvfsehgsuexttt3ugjd8xdklxfwwkh559wxckmzddywnws6cd26p/mkstack.git';
const GIT_TEMPLATE_URL = 'https://gitlab.com/soapbox-pub/mkstack.git';
export interface Project {
id: string;
name: string;
@@ -43,8 +40,8 @@ export class ProjectsManager {
}
}
async createProject(name: string, customId?: string): Promise<Project> {
const project = await this.cloneProject(name, GIT_TEMPLATE_URL, customId, { depth: 1 });
async createProject(name: string, templateUrl: string, customId?: string): Promise<Project> {
const project = await this.cloneProject(name, templateUrl, customId, { depth: 1 });
// Delete README.md if it exists
try {