reader/backend/functions/.puppeteerrc.cjs
yanlong.wang e17ef6dba0
fix
2024-04-11 18:28:51 +08:00

15 lines
309 B
JavaScript

const {join} = require('path');
let config = {};
if (!process.env.FUNCTIONS_EMULATOR) {
config = {
// Changes the cache location for Puppeteer.
cacheDirectory: join(__dirname, '.cache', 'puppeteer'),
};
}
/**
* @type {import("puppeteer").Configuration}
*/
module.exports = config;