feat(analytics): integrate Rybbit Analytics with error tracking and session replay

- Added rewrites in next.config.mjs for Rybbit Analytics to bypass adblockers.
- Implemented ErrorBoundary and ErrorTracking components in layout.tsx for enhanced error handling.
- Included a script for analytics tracking in the root layout.
- Updated NutritionGrid in product page to handle potential undefined nutrition data.
This commit is contained in:
Evandro Fonseca Junior committed 2026-01-20 20:13:29 -03:00
1 parent c99c82c837
commit 0eeb63bbde
6 files changed
+188 -7

No files matched your search

+5 -5
View File
@@ -5,12 +5,12 @@
"scripts": {
"dev": "next dev",
"lint": "next lint",
"postinstall": "./node_modules/.bin/prisma generate",
"build": "./node_modules/.bin/prisma generate && ./node_modules/.bin/prisma migrate deploy && next build",
"postinstall": "prisma generate",
"build": "prisma generate && prisma migrate deploy && next build",
"start": "next start",
"db:push": "./node_modules/.bin/prisma db push",
"db:generate": "./node_modules/.bin/prisma generate",
"db:migrate": "./node_modules/.bin/prisma migrate deploy"
"db:push": "prisma db push",
"db:generate": "prisma generate",
"db:migrate": "prisma migrate deploy"
},
"dependencies": {
"@prisma/client": "^5.22.0",