We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eafb543 commit 2cb719dCopy full SHA for 2cb719d
Common/Server/API/OpenSourceDeploymentAPI.ts
@@ -39,6 +39,14 @@ export default class OpenSourceDeploymentAPI extends BaseAPI<
39
(body["oneuptimeVersion"] as string) || "unknown";
40
deployment.instanceUrl = (body["instanceUrl"] as string) || "";
41
42
+ // Skip localhost instances - these are default/unconfigured deployments.
43
+ if (
44
+ deployment.instanceUrl === "http://localhost/" ||
45
+ deployment.instanceUrl === "http://localhost"
46
+ ) {
47
+ return Response.sendEmptySuccessResponse(req, res);
48
+ }
49
+
50
await OpenSourceDeploymentService.create({
51
data: deployment,
52
props: {
0 commit comments