mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-17 16:15:22 +00:00
13b9f6b07f
* Optimize images using Cloudflare Images * Try skipping middleware * Make it work with base path * Fetch image size * Use a target instead of the cf fetch options * Fix resizing * Start optimizing images * Preload images * Use it for page cover * Format and adapt cover * Fix image resizing serving jpeg * Lazy load dark mode images * Timeout at 2s * Fix iframe CSP * Implement logic to lazy load images that should be offscreen * Also lazy load cover images * Low priority in preloading * Fix csp
6 lines
182 B
Bash
6 lines
182 B
Bash
# Configurations
|
|
|
|
# NEXT_PUBLIC_GITBOOK_APP_URL=https://app.gitbook.com
|
|
# GITBOOK_IMAGE_RESIZE_SIGNING_KEY=1234567890
|
|
# GITBOOK_IMAGE_RESIZE_URL=https://mycompany.com/cdn-cgi/image/
|