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