Skip to content

Commit

Permalink
Verify that project ID is present
Browse files Browse the repository at this point in the history
  • Loading branch information
jverce committed Oct 31, 2024
1 parent 60ac2da commit 4695be5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/sdk/src/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,11 @@ export class BackendClient {
*/
constructor(opts: BackendClientOpts) {
this.environment = opts.environment ?? "production";

this.projectId = opts.projectId;
if (!this.projectId) {
throw new Error("Project ID is required");
}

const {
apiHost = "api.pipedream.com",
Expand Down

0 comments on commit 4695be5

Please sign in to comment.