cabdd3ffdd05b49a13b2d7de0d472948c37c6e5c
The SvelteKit server fetches chapter markdown server-side using the presigned URL. rewriteHost() was replacing the internal minio:9000 host with the public PUBLIC_MINIO_PUBLIC_URL (localhost:9000), which is unreachable from inside Docker, causing MinIO 403/connection errors. presignChapter now takes an optional rewrite=false parameter — the server-side load function gets the raw internal URL, while any future browser-facing use can pass rewrite=true to get the public-facing URL.
Description
No description provided