reader/backend/functions/.puppeteerrc.cjs
Yanlong Wang 5ed3f90b9c
fix
2024-04-13 07:53:58 +08:00

15 lines
301 B
JavaScript

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