|
1 | 1 | --- |
2 | 2 | title: Running Airgapped / Offline |
3 | | -description: Configure the EmbedPDF Snippet to run without any external network requests — for GDPR-sensitive, high-availability, or fully offline deployments. |
| 3 | +description: Configure the EmbedPDF Snippet to run without any external network requests. |
4 | 4 | searchable: true |
5 | 5 | --- |
6 | 6 |
|
7 | 7 | import { Callout } from '@/components/callout' |
8 | 8 |
|
9 | 9 | # Running Airgapped / Offline |
10 | 10 |
|
11 | | -By default, the EmbedPDF Snippet is optimized for a zero-config developer experience and pulls a handful of assets from public CDNs. That's convenient in most setups, but it's usually not what you want for: |
12 | | - |
13 | | -- **GDPR-sensitive deployments**, where requests to third-party servers (Google Fonts, jsDelivr) may leak end-user IP addresses without consent. |
14 | | -- **High-availability applications**, where you don't want a critical feature to depend on an external service. |
15 | | -- **Network-restricted environments**, such as intranets or airgapped infrastructure. |
| 11 | +By default, the EmbedPDF Snippet is optimized for a zero-config developer experience and pulls a handful of assets from public CDNs. For network-restricted environments, such as intranets or airgapped infrastructure, you can redirect or disable those external requests. |
16 | 12 |
|
17 | 13 | This guide walks through every CDN default in the snippet and shows how to redirect or disable each one. |
18 | 14 |
|
@@ -82,10 +78,6 @@ EmbedPDF.init({ |
82 | 78 |
|
83 | 79 | See the individual font package READMEs (`@embedpdf/fonts-jp`, `@embedpdf/fonts-sc`, `@embedpdf/fonts-tc`, `@embedpdf/fonts-kr`, `@embedpdf/fonts-arabic`, `@embedpdf/fonts-hebrew`, `@embedpdf/fonts-latin`) for the exact file names and recommended weights. |
84 | 80 |
|
85 | | -### Option C — Mirror the jsDelivr URLs |
86 | | - |
87 | | -If you simply want the same CDN config pointed at your own mirror, copy the structure from `createCdnFontConfig` in `@embedpdf/engines` and rewrite the hostnames. |
88 | | - |
89 | 81 | ## 3. Configure or opt out of webfonts |
90 | 82 |
|
91 | 83 | The snippet uses two families of external webfonts, both configurable through the top-level `fonts` key: |
|
0 commit comments