diff --git a/supabase/functions/_shared/railway.ts b/supabase/functions/_shared/railway.ts index 9db5bc4..b3a52eb 100644 --- a/supabase/functions/_shared/railway.ts +++ b/supabase/functions/_shared/railway.ts @@ -75,6 +75,7 @@ export async function configureRailwayService(opts: { token: string; serviceId: string; environmentId: string; + projectId?: string; image: string; variables: Record; startCommand?: string; @@ -109,6 +110,7 @@ export async function configureRailwayService(opts: { token: opts.token, serviceId: opts.serviceId, environmentId: opts.environmentId, + projectId: opts.projectId, name, value, }); diff --git a/supabase/functions/provision-agent/index.ts b/supabase/functions/provision-agent/index.ts index 1ef6e02..fa4d874 100644 --- a/supabase/functions/provision-agent/index.ts +++ b/supabase/functions/provision-agent/index.ts @@ -252,6 +252,7 @@ Deno.serve(async (req) => { token: RAILWAY_API_TOKEN, serviceId: railwayServiceId, environmentId: pool.railway_environment_id, + projectId: pool.railway_project_id, image: "ghcr.io/domfelipe/hermes-agent-custom:latest", variables: envVars, });