Skip to content

Commit 3d0d0e9

Browse files
committed
Move PDF output directory
1 parent 0753c6d commit 3d0d0e9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/generate-pdfs.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* Usage:
77
* - node scripts/generate-pdfs.mjs <slug> # single article
88
* - node scripts/generate-pdfs.mjs # all deep dive articles
9+
* - OR npm run pdf:generate
910
*
1011
* Requires a running server (dev or preview) at localhost:4321.
1112
* Set PDF_SERVER_URL to override the server base URL.
@@ -18,7 +19,7 @@ import puppeteer from 'puppeteer'
1819
// --- Configuration ---
1920

2021
const SERVER_BASE = process.env.PDF_SERVER_URL ?? 'http://localhost:4321'
21-
const OUTPUT_DIR = resolve('public/downloads/pdfs')
22+
const OUTPUT_DIR = resolve('public/downloads')
2223
const ARTICLES_DIR = resolve('src/content/articles')
2324
const CONTACT_JSON = resolve('src/content/contact.json')
2425
const slugFilter = process.argv[2] ?? null

0 commit comments

Comments
 (0)