Declare typed Convex env and route auth through @code/env/convex

- Register SITE_URL, NATIVE_APP_URL, CONVEX_SITE_URL, FLUE_DB_TOKEN in
  convex.config.ts so the generated server.js exposes a typed env object.
- Rewrite auth.ts to consume @code/env/convex and tighten the
  getCurrentUser handler.
- Refresh the backend README to describe the control-plane role and
  generated-file policy.
This commit is contained in:
-Puter
2026-07-19 17:29:21 +05:30
parent 6de7c3065e
commit e91ca4e6f0
7 changed files with 52 additions and 97 deletions

View File

@@ -5,15 +5,15 @@
"license": "ISC",
"author": "",
"scripts": {
"dev": "convex dev",
"dev:setup": "convex dev --configure --until-success"
"dev": "convex dev --env-file ../../.env",
"dev:setup": "convex dev --env-file ../../.env --configure --until-success"
},
"dependencies": {
"@better-auth/expo": "catalog:",
"@code/env": "workspace:*",
"@convex-dev/better-auth": "catalog:",
"better-auth": "catalog:",
"convex": "catalog:",
"dotenv": "catalog:",
"zod": "catalog:"
},
"devDependencies": {