reader/backend/functions/.puppeteerrc.cjs
yanlong.wang 9d0d54e511
fix
2024-04-11 19:00:27 +08:00

15 lines
311 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;