reader/backend/functions/.puppeteerrc.cjs
Yanlong Wang 33d7cfc41c
fix
2024-04-13 08:25:52 +08:00

15 lines
347 B
JavaScript

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