reader/backend/functions/.puppeteerrc.cjs

15 lines
347 B
JavaScript
Raw Normal View History

2024-04-11 19:00:27 +08:00
const { join } = require('path');
2024-04-10 20:29:58 +08:00
2024-04-11 18:28:51 +08:00
let config = {};
if (!process.env.FUNCTIONS_EMULATOR) {
config = {
// Changes the cache location for Puppeteer.
2024-04-13 08:25:52 +08:00
cacheDirectory: join(__dirname, 'node_modules', 'puppeteer', 'walk-around-lame-gcp-build'),
2024-04-11 18:28:51 +08:00
};
}
2024-04-10 20:29:58 +08:00
/**
* @type {import("puppeteer").Configuration}
*/
2024-04-11 18:28:51 +08:00
module.exports = config;