ppt-tool/frontend
Vadym Samoilenko 1f5a0c27da Fix SSE proxy: create Next.js route handlers for all streaming endpoints
Next.js rewrites() buffer HTTP responses and drop long-lived connections,
making SSE (text/event-stream) impossible. The backend never even received
the request (no log entry in API, ECONNRESET in web proxy logs).

Create dedicated route.ts files for all 3 SSE endpoints:
- /api/v1/ppt/outlines/stream/[id]
- /api/v1/ppt/presentation/stream/[id]
- /api/v1/ppt/jobs/[job_id]/stream

Each route forwards cookies for auth and returns backend's ReadableStream
directly as a Response, preventing any buffering. Sets X-Accel-Buffering: no
to also disable nginx buffering.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-01 20:43:58 +00:00
..
app Fix SSE proxy: create Next.js route handlers for all streaming endpoints 2026-03-01 20:43:58 +00:00
components Add missing Badge component 2026-02-27 20:17:19 +00:00
cypress Phase 7: Testing Suite — backend unit tests + Cypress E2E framework 2026-02-26 16:49:23 +00:00
i18n Phase 1-2: Foundation + Admin Panel & Client Management 2026-02-26 15:37:17 +00:00
lib Phase 1-2: Foundation + Admin Panel & Client Management 2026-02-26 15:37:17 +00:00
models Phase 1-2: Foundation + Admin Panel & Client Management 2026-02-26 15:37:17 +00:00
public Phase 1-2: Foundation + Admin Panel & Client Management 2026-02-26 15:37:17 +00:00
store Fix 5 post-Phase8 bugs: SSE crash, custom templates, ordering, persistence, JSON display 2026-03-01 20:25:28 +00:00
types Phase 1-2: Foundation + Admin Panel & Client Management 2026-02-26 15:37:17 +00:00
utils Phase 1-2: Foundation + Admin Panel & Client Management 2026-02-26 15:37:17 +00:00
components.json Phase 1-2: Foundation + Admin Panel & Client Management 2026-02-26 15:37:17 +00:00
cypress.config.ts Phase 7: Testing Suite — backend unit tests + Cypress E2E framework 2026-02-26 16:49:23 +00:00
Dockerfile Phase 5: Fix export, slide edit, static files; add README 2026-02-27 15:40:36 +00:00
next-env.d.ts Phase 1-2: Foundation + Admin Panel & Client Management 2026-02-26 15:37:17 +00:00
next.config.mjs Phase 5: Fix export, slide edit, static files; add README 2026-02-27 15:40:36 +00:00
package-lock.json Rebrand Presenton to Oliver DeckForge, pre-configure models, use NanoBanana Pro 2026-02-26 18:17:11 +00:00
package.json Rebrand Presenton to Oliver DeckForge, pre-configure models, use NanoBanana Pro 2026-02-26 18:17:11 +00:00
postcss.config.mjs Phase 1-2: Foundation + Admin Panel & Client Management 2026-02-26 15:37:17 +00:00
README.md Phase 1-2: Foundation + Admin Panel & Client Management 2026-02-26 15:37:17 +00:00
tailwind.config.ts Phase 1-2: Foundation + Admin Panel & Client Management 2026-02-26 15:37:17 +00:00
tsconfig.json Phase 1-2: Foundation + Admin Panel & Client Management 2026-02-26 15:37:17 +00:00
tsconfig.tsbuildinfo Phase 1-2: Foundation + Admin Panel & Client Management 2026-02-26 15:37:17 +00:00

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.