File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed
Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -27,15 +27,14 @@ async function main() {
2727 const shouldUseHttp = cliOptions . port || ( process . env . PORT && ! cliOptions . stdio ) ;
2828 const port = cliOptions . port || config . port ;
2929
30- startHttpTransport ( { ...config , port } ) ;
31- // if (shouldUseHttp) {
32- // // HTTP transport for production/cloud deployment
33- // startHttpTransport({ ...config, port });
34- // } else {
35- // // STDIO transport for local development
36- // const server = new OpenMeteoServer(config);
37- // await runStdioTransport(server.getServer());
38- // }
30+ if ( shouldUseHttp ) {
31+ // HTTP transport for production/cloud deployment
32+ startHttpTransport ( { ...config , port } ) ;
33+ } else {
34+ // STDIO transport for local development
35+ const server = new OpenMeteoServer ( config ) ;
36+ await runStdioTransport ( server . getServer ( ) ) ;
37+ }
3938 } catch ( error ) {
4039 console . error ( "Fatal error running Open-Meteo server:" , error ) ;
4140 process . exit ( 1 ) ;
You can’t perform that action at this time.
0 commit comments