From 7667006b7dc97fa7600c71f0ef9d6d18060571b3 Mon Sep 17 00:00:00 2001 From: Diogo Correia Date: Thu, 21 Mar 2024 00:31:36 +0100 Subject: [PATCH] chore: remove references to puppeteer (#1013) --- .puppeteerrc.cjs | 12 ------------ README.md | 7 ------- 2 files changed, 19 deletions(-) delete mode 100644 .puppeteerrc.cjs diff --git a/.puppeteerrc.cjs b/.puppeteerrc.cjs deleted file mode 100644 index 9acc319c..00000000 --- a/.puppeteerrc.cjs +++ /dev/null @@ -1,12 +0,0 @@ -const { join } = require('path'); - -/** - * @type {import("puppeteer").Configuration} - */ -module.exports = { - // Changes the cache location for Puppeteer. - // This is because when deploying to Vercel, ~/.cache isn't cached between builds. - cacheDirectory: process.env['PUPPETEER_IN_PROJECT_DIRECTORY'] - ? join(__dirname, 'node_modules', '.cache-puppeteer') - : undefined, -}; diff --git a/README.md b/README.md index afb092da..1ea345b6 100644 --- a/README.md +++ b/README.md @@ -81,13 +81,6 @@ Antes de fazer um commit, é recomendado executar o `prettier` (se usarem um edi yarn format ``` -### Configurações Avançadas - -Quando se está a configurar o _deployment_, de forma a incluir o browser nas pastas -que ficam em cache, pode ser necessário definir -a _environment variable_ `PUPPETEER_IN_PROJECT_DIRECTORY`, que guarda o browser -do Puppeteer na pasta do projeto em vez de na _home directory_. - ## Parceiros [![Powered by Vercel](./src/images/powered-by-vercel.svg)](https://vercel.com/?utm_source=leic-pt&utm_campaign=oss)