diff --git a/backend/functions/.puppeteerrc.cjs b/backend/functions/.puppeteerrc.cjs new file mode 100644 index 0000000..0e5c8c4 --- /dev/null +++ b/backend/functions/.puppeteerrc.cjs @@ -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'), +}; diff --git a/backend/functions/package.json b/backend/functions/package.json index bdbf6f8..943c6a0 100644 --- a/backend/functions/package.json +++ b/backend/functions/package.json @@ -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"