mirror of
https://git.mirrors.martin98.com/https://github.com/jina-ai/reader
synced 2025-07-31 16:22:03 +08:00
15 lines
311 B
JavaScript
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;
|