Skip to content
This repository has been archived by the owner on Jan 21, 2023. It is now read-only.

Commit

Permalink
Add path for chrome on linux (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebarkmin authored Apr 14, 2020
1 parent 359fd09 commit bce2922
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api/_lib/options.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import chrome from 'chrome-aws-lambda';
const exePath = process.platform === 'win32'
? 'C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe'
: process.platform === 'linux'
? '/usr/bin/google-chrome'
: '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome';

interface Options {
Expand All @@ -25,4 +27,4 @@ export async function getOptions(isDev: boolean) {
};
}
return options;
}
}

1 comment on commit bce2922

@vercel
Copy link

@vercel vercel bot commented on bce2922 Apr 14, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.