Files
Zero/package.json
nizzy 99fcc71df8 dub (#1671)
## Description

Integrated Dub Analytics into the application to track user interactions and improve analytics capabilities. This PR adds the Dub Analytics component to the mail application layout and configures the analytics plugin in the authentication system.

---

## Type of Change

- [x]  New feature (non-breaking change which adds functionality)
- [x]  Performance improvement

## Areas Affected

- [x] Authentication/Authorization
- [x] User Interface/Experience
- [x] Data Storage/Management

## Testing Done

- [x] Manual testing performed

## Security Considerations

- [x] No sensitive data is exposed
- [x] Authentication checks are in place

## Checklist

- [x] I have performed a self-review of my code
- [x] My changes generate no new warnings
- [x] I have updated the documentation

## Additional Notes

The Dub Analytics integration provides better insights into user behavior while maintaining privacy standards. The implementation includes:

1. Added Dub Analytics component to the mail application layout with domain configuration
2. Integrated Dub analytics plugin into the authentication system
3. Added required dependencies (@dub/analytics, @dub/better-auth, and dub) to the project
2025-07-15 20:13:24 -07:00

55 lines
2.2 KiB
JSON

{
"name": "zero",
"version": "0.1.0",
"private": true,
"packageManager": "pnpm@10.12.1",
"scripts": {
"go": "pnpm docker:db:up && pnpm run dev",
"prepare": "husky",
"nizzy": "tsx ./packages/cli/src/cli.ts",
"postinstall": "pnpm nizzy sync",
"dev": "turbo run dev",
"build": "turbo run build",
"build:frontend": "pnpm run --filter=@zero/mail build",
"deploy:frontend": "pnpm run --filter=@zero/mail deploy",
"deploy:backend": "pnpm run --filter=@zero/server deploy",
"start": "turbo run start",
"lint": "turbo run lint",
"format": "prettier --write apps/**/*.{ts,tsx} --log-level silent",
"check": "pnpm run check:format && pnpm run lint",
"check:format": "prettier . --check",
"lint-staged": "prettier --write --ignore-unknown",
"docker:db:up": "docker compose -f docker-compose.db.yaml up -d",
"docker:db:stop": "docker compose -f docker-compose.db.yaml stop",
"docker:db:down": "docker compose -f docker-compose.db.yaml down",
"docker:db:clean": "docker compose -f docker-compose.db.yaml down -v",
"db:generate": "dotenv -- pnpm run -C apps/server db:generate",
"db:migrate": "dotenv -- pnpm run -C apps/server db:migrate",
"db:push": "dotenv -- pnpm run -C apps/server db:push",
"db:studio": "dotenv -- pnpm run -C apps/server db:studio",
"sentry:sourcemaps": "sentry-cli sourcemaps inject --org zero-7y --project nextjs ./apps/mail/.next && sentry-cli sourcemaps upload --org zero-7y --project nextjs ./apps/mail/.next",
"scripts": "dotenv -- pnpx tsx ./scripts/run.ts",
"test:ai": "dotenv -- pnpm --filter=@zero/server run test:ai",
"eval": "dotenv -- pnpm --filter=@zero/server run eval",
"eval:dev": "dotenv -- pnpm --filter=@zero/server run eval:dev",
"eval:ci": "dotenv -- pnpm --filter=@zero/server run eval:ci"
},
"devDependencies": {
"@types/node": "22.15.29",
"@zero/tsconfig": "workspace:*",
"dotenv-cli": "^8.0.0",
"husky": "9.1.7",
"prettier": "3.5.3",
"prettier-plugin-sort-imports": "1.8.8",
"prettier-plugin-tailwindcss": "0.6.12",
"tsx": "4.19.4",
"turbo": "^2.5.4",
"typescript": "catalog:"
},
"dependencies": {
"@dub/analytics": "0.0.27",
"@dub/better-auth": "0.0.3",
"dub": "0.63.7"
}
}