File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ function parseGradioEndpoints(gradioParam: string): SpaceTool[] {
85
85
for ( const entry of entries ) {
86
86
// Validate exactly one slash
87
87
const slashCount = ( entry . match ( / \/ / g) || [ ] ) . length ;
88
- if ( slashCount !== 1 ) {
88
+ if ( slashCount !== 1 && 'none' != entry ) {
89
89
logger . warn ( `Skipping invalid gradio entry "${ entry } ": must contain exactly one slash` ) ;
90
90
continue ;
91
91
}
@@ -152,6 +152,12 @@ export const createProxyServerFactory = (
152
152
return result ;
153
153
}
154
154
155
+ // Skip Gradio endpoints if explicitly disabled
156
+ if ( gradio === 'none' ) {
157
+ logger . debug ( 'Gradio endpoints explicitly disabled via gradio="none"' ) ;
158
+ return result ;
159
+ }
160
+
155
161
// Now we have access to userDetails if needed
156
162
if ( userDetails ) {
157
163
logger . debug ( `Proxy has access to user details for: ${ userDetails . name } ` ) ;
You can’t perform that action at this time.
0 commit comments