Implemented with react-pdf.
yarn
yarn run dev
open http://localhost:3007/exampleAPI_URL=https://api.republik.ch/graphql
FRONTEND_BASE_URL=https://www.republik.ch
ASSETS_SERVER_BASE_URL=https://cdn.republik.spaceYou can create a local .env file which will be auto loaded.
This project includes a script that runs a batch of PDF generation processes. To run it, provide your session cookie as API_COOKIE:
FIRST=500 CONCURRENCY=1 API_COOKIE=connect.sid=s%... node test/renderToFile.jsWith DOTENV=1 you can also use your .env file.