Skip to content

Commit 4695be5

Browse files
committed
Verify that project ID is present
1 parent 60ac2da commit 4695be5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/sdk/src/server/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,11 @@ export class BackendClient {
333333
*/
334334
constructor(opts: BackendClientOpts) {
335335
this.environment = opts.environment ?? "production";
336+
336337
this.projectId = opts.projectId;
338+
if (!this.projectId) {
339+
throw new Error("Project ID is required");
340+
}
337341

338342
const {
339343
apiHost = "api.pipedream.com",

0 commit comments

Comments
 (0)