Skip to content

Commit eac36a8

Browse files
committed
fix: Retrieve --no-webui functionality
1 parent 78b79e2 commit eac36a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/server/server.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5072,7 +5072,7 @@ int main(int argc, char ** argv) {
50725072

50735073
// SPA fallback route - serve index.html for any route that doesn't match API endpoints
50745074
// This enables client-side routing for dynamic routes like /chat/[id]
5075-
if (params.public_path.empty()) {
5075+
if (params.webui && params.public_path.empty()) {
50765076
// Only add fallback when using embedded static files
50775077
svr->Get(".*", [](const httplib::Request & req, httplib::Response & res) {
50785078
// Skip API routes - they should have been handled above

0 commit comments

Comments
 (0)