diff --git a/CHANGELOG.md b/CHANGELOG.md index c316c36..67f45b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [1.1.9] - 2026-01-04 + +### Changed +- Moved health check to `/health` directory - URL is now `/health` instead of `/health.html` + - Enables NPM forward auth path exclusion for health endpoint + ## [1.1.8] - 2026-01-04 ### Changed diff --git a/pubspec.yaml b/pubspec.yaml index 2d5b248..cbd20b0 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 1.1.8+1 +version: 1.1.9+1 environment: sdk: ^3.10.4 diff --git a/tool/generate_health_json.dart b/tool/generate_health_json.dart index 586c880..538fbcf 100644 --- a/tool/generate_health_json.dart +++ b/tool/generate_health_json.dart @@ -1,5 +1,5 @@ #!/usr/bin/env dart -// Generates web/health.json from pubspec.yaml +// Generates web/health/health.json from pubspec.yaml // Run: dart run tool/generate_health_json.dart // ignore_for_file: avoid_print @@ -37,15 +37,15 @@ void main() { 'fullVersion': '$version+$buildNumber', }; - final webDir = Directory('web'); - if (!webDir.existsSync()) { - webDir.createSync(recursive: true); + final healthDir = Directory('web/health'); + if (!healthDir.existsSync()) { + healthDir.createSync(recursive: true); } - final healthFile = File('web/health.json'); + final healthFile = File('web/health/health.json'); healthFile.writeAsStringSync( const JsonEncoder.withIndent(' ').convert(health), ); - print('Generated web/health.json with version $version+$buildNumber'); + print('Generated web/health/health.json with version $version+$buildNumber'); } diff --git a/web/health/health.json b/web/health/health.json new file mode 100644 index 0000000..b50cb9a --- /dev/null +++ b/web/health/health.json @@ -0,0 +1,8 @@ +{ + "status": "healthy", + "name": "tatlock_ui", + "title": "Tatlock - a Home Lab AI", + "version": "1.0.4", + "buildNumber": 1, + "fullVersion": "1.0.4+1" +} \ No newline at end of file diff --git a/web/health.html b/web/health/index.html similarity index 97% rename from web/health.html rename to web/health/index.html index 4fb02f3..7462cf1 100644 --- a/web/health.html +++ b/web/health/index.html @@ -13,7 +13,7 @@

Loading...