feat: 后端初始化2

This commit is contained in:
2026-07-28 15:43:27 +08:00
parent dfe0d6bd95
commit 53305757f8
26 changed files with 734 additions and 36 deletions
+6 -2
View File
@@ -25,10 +25,12 @@ prisma/
Copy `.env.example` to `.env` and set:
- `DATABASE_URL`: pooled Neon connection string for Netlify Functions runtime
- `DIRECT_URL`: direct Neon connection string for Prisma CLI and migrations
- `DATABASE_URL`: Neon Postgres connection string for Netlify Functions runtime and Prisma CLI
- `JWT_SECRET`: auth signing secret
- `UPLOAD_TOKEN`: upload guard token
- `POINTS_MALL_OPEN_API_BASE`: main platform bridge base URL, for example `http://localhost/open`
Supplier H5 uses `VUE_APP_SUPPLIER_IDENTIFICATION` to request supplier config from this service. The supplier `clientSecret` stays in the database and is only used by the Netlify Function when requesting the platform bridge token.
## Scripts
@@ -55,3 +57,5 @@ Current placeholders:
- `order-pay`
- `user-info`
- `upload`
- `supplier-info`
- `supplier-token`