Commit graph

5 commits

Author SHA1 Message Date
shubham.goyal@brandtech.plus
d5bb04a837 fix download path 2026-05-17 20:35:21 +05:30
Vadym Samoilenko
910f58369c Fix EventSource URLs missing /ppt-tool basePath
Add apiUrl() helper to apiFetch.ts for non-fetch URL construction.
Fixed 3 SSE streams: outlines, presentation, job progress.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-20 18:02:07 +00:00
Vadym Samoilenko
1e00d480e2 Fix apiFetch: hardcode /ppt-tool basePath (publicRuntimeConfig broken in App Router)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-19 22:38:59 +00:00
Vadym Samoilenko
a99e18c744 Fix apiFetch basePath: use publicRuntimeConfig instead of NEXT_PUBLIC_ env var
NEXT_PUBLIC_* vars are inlined at build time — not available in Docker build context.
publicRuntimeConfig is resolved at runtime from next.config.mjs, which works correctly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-19 22:32:49 +00:00
Vadym Samoilenko
bebe2ac390 Fix API routing: apiFetch helper prefixes basePath for all /api/v1/ calls
Without this, fetch('/api/v1/...') from the browser hits Apache root,
which routes /api/ to OliVAS (port 8000) instead of DeckForge (port 8001).
apiFetch prepends NEXT_PUBLIC_BASE_PATH so requests go through Next.js
rewrites to the correct backend.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-19 22:12:25 +00:00