feat: Update .env.example and Docker Compose configurations to enhance service performance and health checks. Adjust OCR settings for improved document processing efficiency, and refine API Gateway health checks for better service monitoring. Revise desktop application documentation to reflect new API Gateway URL and installation instructions.

This commit is contained in:
erik
2026-07-06 04:30:27 -05:00
parent 081da999d4
commit c37c40663d
39 changed files with 4815 additions and 1232 deletions
+21 -2
View File
@@ -1,8 +1,24 @@
import { readFileSync } from "node:fs";
import { defineConfig } from "vitest/config";
import react from "@vitejs/plugin-react";
export default defineConfig({
const pkg = JSON.parse(readFileSync("./package.json", "utf8")) as { version: string };
const versionMeta = JSON.parse(
readFileSync("./src/shared/version.json", "utf8"),
) as { releaseDate: string };
const PRODUCTION_API_BASE_URL = "https://pys1.builder.xyz";
const DEVELOPMENT_API_BASE_URL = "http://127.0.0.1:8189";
export default defineConfig(({ mode }) => ({
plugins: [react()],
define: {
__APP_VERSION__: JSON.stringify(pkg.version),
__APP_RELEASE_DATE__: JSON.stringify(versionMeta.releaseDate),
__DEFAULT_API_BASE_URL__: JSON.stringify(
mode === "production" ? PRODUCTION_API_BASE_URL : DEVELOPMENT_API_BASE_URL,
),
},
server: {
port: 5173,
strictPort: true,
@@ -11,5 +27,8 @@ export default defineConfig({
environment: "jsdom",
setupFiles: ["src/renderer/test/setup.ts"],
globals: true,
define: {
__DEFAULT_API_BASE_URL__: JSON.stringify(DEVELOPMENT_API_BASE_URL),
},
},
});
}));