Repository navigation
Commit e43342e
fix(v2-inspector): use API base URL for PPTX preview fetch
PptxPreview was calling `/api/uploads/.../preview-pptx-html` as a
relative URL — that hits the SPA host (app-dev.commonly.me), which
returns the index.html shell for any unknown path. The iframe srcdoc
got 830 bytes of HTML stub instead of the 17KB OfficeCli render, and
the inspector showed a black box.
Prepend `getApiBaseUrl()` (already used by signedAttachmentUrl helper
and the api hook) so the fetch hits the actual backend host. Verified
end-to-end: backend route returns 200 + 17.7KB text/html with embedded
slide canvas; the only thing missing was the host.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 309dec3 commit e43342e
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
612 | 613 | | |
613 | 614 | | |
614 | 615 | | |
615 | | - | |
| 616 | + | |
616 | 617 | | |
617 | 618 | | |
618 | 619 | | |
| |||
0 commit comments