@@ -9,10 +9,10 @@ const trimNonEmptyOption = (value: string): Option.Option<string> => {
99} ;
1010
1111const trimmedString = ( name : string ) =>
12- Config . string ( name ) . pipe ( Config . option , Config . map ( Option . flatMap ( trimNonEmptyOption ) ) ) ;
12+ Config . String ( name ) . pipe ( Config . option , Config . map ( Option . flatMap ( trimNonEmptyOption ) ) ) ;
1313
1414const optionalBoolean = ( name : string ) =>
15- Config . boolean ( name ) . pipe ( Config . option , Config . map ( Option . getOrElse ( ( ) => false ) ) ) ;
15+ Config . Boolean ( name ) . pipe ( Config . option , Config . map ( Option . getOrElse ( ( ) => false ) ) ) ;
1616
1717const commaSeparatedStrings = ( name : string ) =>
1818 trimmedString ( name ) . pipe (
@@ -38,15 +38,15 @@ export const DesktopConfig = Config.all({
3838 xdgConfigHome : trimmedString ( "XDG_CONFIG_HOME" ) ,
3939 xdgDataHome : trimmedString ( "XDG_DATA_HOME" ) ,
4040 t3Home : trimmedString ( "T3CODE_HOME" ) ,
41- devServerUrl : Config . url ( "VITE_DEV_SERVER_URL" ) . pipe ( Config . option ) ,
41+ devServerUrl : Config . URL ( "VITE_DEV_SERVER_URL" ) . pipe ( Config . option ) ,
4242 appUserModelIdOverride : trimmedString ( "T3CODE_DESKTOP_APP_USER_MODEL_ID" ) ,
4343 devRemoteT3ServerEntryPath : trimmedString ( "T3CODE_DEV_REMOTE_T3_SERVER_ENTRY_PATH" ) ,
44- configuredBackendPort : Config . port ( "T3CODE_PORT" ) . pipe ( Config . option ) ,
44+ configuredBackendPort : Config . Port ( "T3CODE_PORT" ) . pipe ( Config . option ) ,
4545 commitHashOverride : trimmedString ( "T3CODE_COMMIT_HASH" ) ,
4646 desktopLanHostOverride : trimmedString ( "T3CODE_DESKTOP_LAN_HOST" ) ,
4747 desktopHttpsEndpointUrls : commaSeparatedStrings ( "T3CODE_DESKTOP_HTTPS_ENDPOINTS" ) ,
4848 otlpTracesUrl : trimmedString ( "T3CODE_OTLP_TRACES_URL" ) ,
49- otlpExportIntervalMs : Config . int ( "T3CODE_OTLP_EXPORT_INTERVAL_MS" ) . pipe (
49+ otlpExportIntervalMs : Config . Int ( "T3CODE_OTLP_EXPORT_INTERVAL_MS" ) . pipe (
5050 Config . withDefault ( 10_000 ) ,
5151 ) ,
5252 otlpHeaders : Config . schema ( OtlpHeadersFromString , "T3CODE_OTLP_HEADERS" ) . pipe ( Config . option ) ,
@@ -56,7 +56,7 @@ export const DesktopConfig = Config.all({
5656 appImagePath : trimmedString ( "APPIMAGE" ) ,
5757 disableAutoUpdate : optionalBoolean ( "T3CODE_DISABLE_AUTO_UPDATE" ) ,
5858 mockUpdates : optionalBoolean ( "T3CODE_DESKTOP_MOCK_UPDATES" ) ,
59- mockUpdateServerPort : Config . port ( "T3CODE_DESKTOP_MOCK_UPDATE_SERVER_PORT" ) . pipe (
59+ mockUpdateServerPort : Config . Port ( "T3CODE_DESKTOP_MOCK_UPDATE_SERVER_PORT" ) . pipe (
6060 Config . withDefault ( 3000 ) ,
6161 ) ,
6262} ) ;
0 commit comments