Skip to content

Commit

Permalink
Hotfix: upadte puppeteer script
Browse files Browse the repository at this point in the history
  • Loading branch information
hookor authored and cuconveniencestore committed May 30, 2024
1 parent 4616fa3 commit 3138829
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,6 @@ dist-ssr
.env.local
.env.production
.env.development

# Puppeteer
.cache/puppeteer/*
9 changes: 9 additions & 0 deletions .puppeteerrc.cjs
Original file line number Diff line number Diff line change
@@ -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')
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 3138829

Please sign in to comment.