dokploy/.github
Claude f29a1a1976 fix(ci): handle both old (flat) and new (nested) project.create response formats
In Dokploy <= ~v0.24, project.create returns a flat object with just
projectId at the top level; no environment concept exists yet, so
resources (postgres, mongo, apps) are created with projectId.

In Dokploy >= ~v0.25, project.create returns nested {project, environment}
objects and resources require environmentId.

Previous workflow always used .project.projectId and .environment.environmentId,
both of which evaluated to null on old versions, causing curl to exit with
code 22 (HTTP error) on every subsequent resource-create call.

Fix: extract PROJECT_ID with a // fallback, check ENV_ID nullness, and
build a SCOPE fragment (either 'environmentId' or 'projectId') used in
all resource-creation tRPC calls.
2026-06-26 13:11:37 -03:00
..
ISSUE_TEMPLATE chore(issue-template): update bug report label emoji 2025-03-06 22:05:31 -06:00
sponsors chore(dependencies): update Next.js to version 16.0.10 and remove turbopack script from package.json 2025-12-12 10:09:31 -06:00
workflows fix(ci): handle both old (flat) and new (nested) project.create response formats 2026-06-26 13:11:37 -03:00
CODEOWNERS chore: add codeowners and pull request workflow 2024-04-29 23:32:25 -06:00
FUNDING.yml Update FUNDING.yml 2024-07-16 19:45:41 -06:00
pull_request_template.md docs: Update CONTRIBUTING.md and pull request template for clarity 2026-02-08 23:13:19 -06:00