feat: store coolifyProjectUuid on project creation for Infrastructure panel
Made-with: Cursor
This commit is contained in:
@@ -166,12 +166,15 @@ export async function POST(request: Request) {
|
||||
name: string; path: string; coolifyServiceUuid: string | null; domain: string | null;
|
||||
}> = appNames.map(name => ({ name, path: `apps/${name}`, coolifyServiceUuid: null, domain: null }));
|
||||
|
||||
let coolifyProjectUuid: string | null = null;
|
||||
|
||||
if (giteaCloneUrl) {
|
||||
try {
|
||||
const coolifyProject = await createCoolifyProject(
|
||||
projectName,
|
||||
`Vibn project: ${projectName}`
|
||||
);
|
||||
coolifyProjectUuid = coolifyProject.uuid;
|
||||
|
||||
for (const app of provisionedApps) {
|
||||
try {
|
||||
@@ -255,6 +258,8 @@ export async function POST(request: Request) {
|
||||
theiaError,
|
||||
// Context snapshot (kept fresh by webhooks)
|
||||
contextSnapshot: null,
|
||||
// Coolify project — one per VIBN project, scopes all app services + DBs
|
||||
coolifyProjectUuid,
|
||||
// Turborepo monorepo apps — each gets its own Coolify service
|
||||
turboVersion: '2.3.3',
|
||||
apps: provisionedApps,
|
||||
|
||||
Reference in New Issue
Block a user