Skip to content
This repository was archived by the owner on Jun 17, 2026. It is now read-only.

Commit daee6dc

Browse files
authored
Merge pull request #41 from pipecat-ai/mb/fix-sessions-route
Fixed an issue where the sessions route would appear when SmallWebRTC…
2 parents dfdb80f + e9a6519 commit daee6dc

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ All notable changes to **Pipecat** will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [Unreleased]
9+
10+
### Fixed
11+
12+
- Fixed an issue where the sessions route was created for a Next.js client even
13+
when the SmallWebRTC transport was not in use.
14+
815
## [0.1.8] - 2025-11-12
916

1017
### Added

src/pipecat_cli/generators/project.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,12 @@ def _copy_and_render_directory(self, source_dir: Path, dest_dir: Path) -> None:
616616
# Calculate relative path
617617
rel_path = item.relative_to(source_dir)
618618

619+
# Skip SmallWebRTC-specific files if SmallWebRTC is not in transports
620+
if "smallwebrtc" not in self.config.transports:
621+
# Skip the sessions API route for Next.js
622+
if "api/sessions" in str(rel_path):
623+
continue
624+
619625
# Determine destination path
620626
if item.suffix == ".jinja2":
621627
# Remove .jinja2 extension for rendered files

0 commit comments

Comments
 (0)