- Add `getGitHash` utility to extract the git commit hash from the `.git/HEAD` file. - Expose a new `/api/app-version` endpoint on the server to return the current version. - Implement a `useAppVersion` hook to fetch the version asynchronously. - Display the app version (e.g., `app version: a1b2c3d`) in the User Center UI for both authenticated and unauthenticated users. - This helps in tracking which version of the application is currently running in production. |
||
|---|---|---|
| __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 | ||