We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
--no-webui
1 parent 78b79e2 commit eac36a8Copy full SHA for eac36a8
tools/server/server.cpp
@@ -5072,7 +5072,7 @@ int main(int argc, char ** argv) {
5072
5073
// SPA fallback route - serve index.html for any route that doesn't match API endpoints
5074
// This enables client-side routing for dynamic routes like /chat/[id]
5075
- if (params.public_path.empty()) {
+ if (params.webui && params.public_path.empty()) {
5076
// Only add fallback when using embedded static files
5077
svr->Get(".*", [](const httplib::Request & req, httplib::Response & res) {
5078
// Skip API routes - they should have been handled above
0 commit comments