stemedb/applications/aphoria-dashboard/next.config.ts
jml cce54358d2 feat(aphoria): add git commit tracking + comprehensive documentation
**Git Commit Tracking**
- Automatically capture git commit hash when claims/observations are ingested
- Store in assertion metadata for temporal context and audit trails
- Graceful degradation in non-git environments
- Solves double-commit problem by capturing hash at ingestion time

**Implementation**
- walker/git.rs: get_current_commit_hash() utility function
- bridge.rs: Accept optional git_commit parameter in all conversion functions
- episteme/local: Store project_root, capture git hash during ingestion
- 5 new tests for git hash tracking + metadata validation
- All 1162 aphoria tests passing

**Documentation Overhaul**
- README: Added Observations vs Claims distinction, git tracking, dashboard
- CLI Reference: New sections for git integration and ignore/exclusion system
- Comprehensive ignore documentation: .aphoriaignore, inline comments, 4 methods
- Enhanced verification engine docs with matching capabilities
- DOCUMENTATION_UPDATES.md: Complete audit summary

**Dashboard Separation**
- Moved Aphoria-specific UI from stemedb-dashboard to aphoria-dashboard
- Clean separation of concerns: StemeDB for core, Aphoria for security
- Added dashboard documentation and setup guides

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-08 18:36:46 +00:00

35 lines
832 B
TypeScript

import type { NextConfig } from "next";
const nextConfig: NextConfig = {
// Allow cross-origin dev requests from proxy
allowedDevOrigins: ["jml", "http://jml"],
// Proxy API requests to backend in development
async rewrites() {
return [
{
source: "/v1/:path*",
destination: "http://127.0.0.1:18180/v1/:path*",
},
{
source: "/health",
destination: "http://127.0.0.1:18180/health",
},
{
source: "/metrics",
destination: "http://127.0.0.1:18180/metrics",
},
{
source: "/swagger-ui/:path*",
destination: "http://127.0.0.1:18180/swagger-ui/:path*",
},
{
source: "/api-docs/:path*",
destination: "http://127.0.0.1:18180/api-docs/:path*",
},
];
},
};
export default nextConfig;