This commit is contained in:
yanlong.wang 2024-04-10 20:29:58 +08:00
parent 94e65381bd
commit 77174f1511
No known key found for this signature in database
GPG Key ID: C0A623C0BADF9F37
2 changed files with 11 additions and 1 deletions

View File

@ -0,0 +1,9 @@
const {join} = require('path');
/**
* @type {import("puppeteer").Configuration}
*/
module.exports = {
// Changes the cache location for Puppeteer.
cacheDirectory: join(__dirname, '.cache', 'puppeteer'),
};

View File

@ -18,7 +18,8 @@
"from-preset": "npm run build && npm run emu:reset && npm run emu:start",
"start": "npm run shell",
"deploy": "firebase deploy --only functions",
"logs": "firebase functions:log"
"logs": "firebase functions:log",
"gcp-build": "node node_modules/puppeteer/install.js"
},
"engines": {
"node": "20"