diff --git a/.gitignore b/.gitignore index 5659261..4ce8f62 100644 --- a/.gitignore +++ b/.gitignore @@ -29,3 +29,6 @@ dist-ssr .env.local .env.production .env.development + +# Puppeteer +.cache/puppeteer/* \ No newline at end of file diff --git a/.puppeteerrc.cjs b/.puppeteerrc.cjs new file mode 100644 index 0000000..06aa749 --- /dev/null +++ b/.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/package.json b/package.json index 05a7b6f..c5a1a1a 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "prepare": "panda codegen", "dev": "vite --host 0.0.0.0 --port 3000", - "build": "tsc && pnpm exec panda && vite build", + "build": "tsc && pnpm exec panda && npx puppeteer browsers install chrome && vite build", "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", "preview": "vite preview", "panda": "pnpm exec panda",