mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
21 lines
555 B
JavaScript
21 lines
555 B
JavaScript
const path = require('path')
|
|
if (process.arch === 'arm64' && process.platform === 'darwin') {
|
|
require('dotenv').config()
|
|
}
|
|
|
|
const CRX_PATH = path.resolve(__dirname, 'dist')
|
|
|
|
module.exports = {
|
|
launch: {
|
|
// set by mujo-code/puppeteer-headful on GitHub actions
|
|
// also for usages on ARM chip Mac
|
|
executablePath: process.env.PUPPETEER_EXEC_PATH,
|
|
// required for enabling extensions
|
|
headless: false,
|
|
args: [
|
|
`--no-sandbox`,
|
|
`--disable-extensions-except=${CRX_PATH}`,
|
|
`--load-extension=${CRX_PATH}`,
|
|
],
|
|
},
|
|
}
|