Skip to content

Commit

Permalink
update zapierwrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
kreddlear committed Jan 31, 2025
1 parent 218c2ec commit 1d58d09
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions packages/core/include/zapierwrapper.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// not intended to be loaded via require() - copied during build step
const path = require('path');
const zapier = require('zapier-platform-core');
const appPath = path.resolve(__dirname, 'index.js');
// don't `require(appPath)` out here
module.exports = { handler: zapier.createAppHandler(appPath) };
import path from 'node:path';
import zapier from 'zapier-platform-core';

const appPath = path.resolve(process.cwd(), 'index.js');

export const handler = zapier.createAppHandler(appPath);

0 comments on commit 1d58d09

Please sign in to comment.