- Detect WeChat browser environment in frontend and render WechatGuid component instead of the standard App to ensure correct functionality within WeChat. - Asynchronously initialize Firebase Messaging and App to prevent blocking and handle environment support checks properly. - Wrap Service Worker initialization in try-catch to prevent startup errors from breaking the service worker registration. - Add detailed logging for token auto-update logic to assist with debugging. - Ensure Firebase token generation only proceeds if the environment supports notifications. |
||
|---|---|---|
| __test__ | ||
| .vscode | ||
| assets | ||
| 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 | ||
My-Kaiqiuwang
To install dependencies:
bun install
To start a development server:
bun dev
To run for production:
bun start
This project was created using bun init in bun v1.2.21. Bun is a fast all-in-one JavaScript runtime.
Database
Prisma
设计阶段
bun --env-file=.env.development prisma db push
开发阶段, 生成代码
bun --env-file=.env.development prisma generate
在开发环境生成 migration 文件
bun --env-file=.env.development prisma migrate dev --name=<name>
同步到测试环境,跑测试用例用(如果需要的话)
bun --env-file=.env.test prisma migrate deploy