fix: support inngest vercel integration

This commit is contained in:
Mythie
2024-08-14 13:49:47 +10:00
parent ab8701526c
commit f568025a0b
3 changed files with 4 additions and 1 deletions

View File

@ -27,7 +27,7 @@ export class InngestJobProvider extends BaseJobProvider {
if (!this._instance) {
const client = new InngestClient({
id: 'documenso-app',
eventKey: process.env.NEXT_PRIVATE_INNGEST_EVENT_KEY,
eventKey: process.env.INNGEST_EVENT_KEY || process.env.NEXT_PRIVATE_INNGEST_EVENT_KEY,
});
this._instance = new InngestJobProvider({ client });

View File

@ -83,6 +83,8 @@ declare namespace NodeJS {
/**
* Inngest environment variables
*/
INNGEST_EVENT_KEY?: string;
INNGEST_SIGNING_KEY?: string;
NEXT_PRIVATE_INNGEST_EVENT_KEY?: string;
/**