- Remove `getGitHash` function from `src/utils/server.ts` as it relied on `.git` directory presence which is not available in production builds. - Remove the `/api/app-version` endpoint from `src/index.tsx` since fetching version via API is no longer needed. - Update `src/hooks/useAppVersion.ts` to derive the version directly from the `src` attribute of a script tag in the HTML head. - This change improves performance by avoiding an extra API request and ensures version accuracy across all deployment environments without requiring Git metadata. |
||
|---|---|---|
| __test__ | ||
| .vscode | ||
| prisma | ||
| src | ||
| .env.example | ||
| .gitignore | ||
| bun-env.d.ts | ||
| bun.lock | ||
| bunfig.toml | ||
| docker-compose.yml | ||
| dockerfile | ||
| package.json | ||
| prisma.config.ts | ||
| README.md | ||
| tsconfig.json | ||