I install spatie/pdf and puppeteer , it work well in local but when deployment to server it is not work.
fisrt error about chaching
as I search I had create .puppeteerrc.cjs and add this content :
const {join} = require('path');
/**
@type {import("puppeteer").Configuration}
*/
module.exports = {
// Changes the cache location for Puppeteer.
cacheDirectory: join(__dirname, '.cache', 'puppeteer'),
};
the error is disapeare but another error is rise after take log period of process:
Page.printToPDF timed out. Increase the 'protocolTimeout' setting in launch/connect calls for a higher timeout if needed. at
I install spatie/pdf and puppeteer , it work well in local but when deployment to server it is not work. fisrt error about chaching as I search I had create .puppeteerrc.cjs and add this content : const {join} = require('path');
/**
the error is disapeare but another error is rise after take log period of process: Page.printToPDF timed out. Increase the 'protocolTimeout' setting in launch/connect calls for a higher timeout if needed. at
the server is windows serve with Plesk panel