| 247 | function stringToBool(str) { | 247 | function stringToBool(str) { |
| 248 | if (str === 'true') return true; | 248 | if (str === 'true') return true; |
| 249 | if (str === 'false') return false; | 249 | if (str === 'false') return false; |
| 250 | return str; // or throw an error | 250 | return str; |
| 251 | } | 251 | } |
| 252 | | 252 | |
| 253 | const server_port = cliArguments.port ?? process.env.SILLY_TAVERN_PORT ?? getConfigValue('port', DEFAULT_PORT); | 253 | const server_port = cliArguments.port ?? process.env.SILLY_TAVERN_PORT ?? getConfigValue('port', DEFAULT_PORT); |