Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Latest commit

 

History

History
30 lines (20 loc) · 683 Bytes

README.md

File metadata and controls

30 lines (20 loc) · 683 Bytes

Render Mdast as PDF

Implemented with react-pdf.

yarn
yarn run dev

open http://localhost:3007/example

Env

API_URL=https://api.republik.ch/graphql
FRONTEND_BASE_URL=https://www.republik.ch
ASSETS_SERVER_BASE_URL=https://cdn.republik.space

You can create a local .env file which will be auto loaded.

Documents sequencer fetcher

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.js

With DOTENV=1 you can also use your .env file.