feat: store coolifyProjectUuid on project creation for Infrastructure panel

Made-with: Cursor
This commit is contained in:
2026-03-09 17:40:21 -07:00
parent 7979fd0518
commit 0e204ced89

View File

@@ -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,