4 changed files with 20 additions and 18 deletions
-5
View File
@@ -1,5 +0,0 @@
# Deploy-time configuration for the platform (schema: crates/conusai-repo-config).
health:
# The app's health endpoint. Without this the deployer probes "/", which
# renders the dashboard — the wrong probe for liveness.
path: /api/health
+6
View File
@@ -0,0 +1,6 @@
{
"schema_version": 2,
"health_check": {
"path": "/api/health"
}
}
+9 -9
View File
@@ -17,14 +17,14 @@
}, },
"dependencies": { "dependencies": {
"@aws-sdk/client-s3": "3.1146.0", "@aws-sdk/client-s3": "3.1146.0",
"@conusai-sdk/api": "0.1.1-dev.20261013.85463d22", "@conusai-sdk/api": "0.1.1-dev.20261016.aaa19cf6",
"@conusai-sdk/blob": "0.0.5-dev.20261013.85463d22", "@conusai-sdk/blob": "0.0.5-dev.20261016.aaa19cf6",
"@conusai-sdk/kv": "0.0.5-dev.20261013.85463d22", "@conusai-sdk/kv": "0.0.5-dev.20261016.aaa19cf6",
"@conusai-sdk/node-sdk": "0.2.2-dev.20261013.85463d22", "@conusai-sdk/node-sdk": "0.2.2-dev.20261016.aaa19cf6",
"@conusai-sdk/observe": "0.1.0-dev.20261013.85463d22", "@conusai-sdk/observe": "0.1.0-dev.20261016.aaa19cf6",
"@conusai-sdk/observe-next": "0.1.0-dev.20261013.85463d22", "@conusai-sdk/observe-next": "0.1.0-dev.20261016.aaa19cf6",
"@conusai-sdk/observe-node": "0.1.1-dev.20261013.85463d22", "@conusai-sdk/observe-node": "0.1.1-dev.20261016.aaa19cf6",
"@conusai-sdk/observe-react": "0.1.0-dev.20261013.85463d22", "@conusai-sdk/observe-react": "0.1.0-dev.20261016.aaa19cf6",
"drizzle-orm": "0.45.3", "drizzle-orm": "0.45.3",
"nats": "2.29.3", "nats": "2.29.3",
"next": "16.3.8", "next": "16.3.8",
@@ -36,7 +36,7 @@
}, },
"devDependencies": { "devDependencies": {
"@axe-core/playwright": "4.13.0", "@axe-core/playwright": "4.13.0",
"@conusai-sdk/observe-testing": "0.1.0-dev.20261013.85463d22", "@conusai-sdk/observe-testing": "0.1.0-dev.20261016.aaa19cf6",
"@eslint/eslintrc": "3.3.7", "@eslint/eslintrc": "3.3.7",
"@feature-sliced/steiger-plugin": "0.8.0", "@feature-sliced/steiger-plugin": "0.8.0",
"@playwright/test": "1.63.0", "@playwright/test": "1.63.0",
+5 -4
View File
@@ -3,11 +3,12 @@ import { describe, expect, it } from 'vitest'
// The deployer's default health probe is "/" (deploy_image.rs), which renders // The deployer's default health probe is "/" (deploy_image.rs), which renders
// this app's dashboard; the template must ship its real health route in // this app's dashboard; the template must ship its real health route in
// .conusai.yaml (schema: crates/conusai-repo-config, `health.path`). // conusai.json (schema: crates/conusai-presets/src/repo_config.rs,
describe('.conusai.yaml', () => { // `health_check.path`).
const yaml = readFileSync(new URL('../.conusai.yaml', import.meta.url), 'utf8') describe('conusai.json', () => {
const config = JSON.parse(readFileSync(new URL('../conusai.json', import.meta.url), 'utf8'))
it('declares the health check path the app actually serves', () => { it('declares the health check path the app actually serves', () => {
expect(yaml).toMatch(/^health:\n(\s{2}.*\n)*\s{2}path: \/api\/health\s*$/m) expect(config.health_check.path).toBe('/api/health')
}) })
}) })