Add rrweb-based session recording feature.
Implements full session recording with rrweb for DOM capture and rrweb-player for playback. Includes: Prisma schema for SessionRecording model, chunked gzip-compressed storage, recorder script built via Rollup, collection API endpoint, recordings list/playback UI pages, website recording settings, and cascade delete support. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
b9eb5f9800
commit
72b5c658e2
36 files changed
+1131
-21
No files matched your search
@@ -136,6 +136,10 @@ export async function resetWebsite(websiteId: string) {
|
||||
|
||||
return transaction(
|
||||
async tx => {
|
||||
await tx.sessionRecording.deleteMany({
|
||||
where: { websiteId },
|
||||
});
|
||||
|
||||
await tx.revenue.deleteMany({
|
||||
where: { websiteId },
|
||||
});
|
||||
@@ -183,6 +187,10 @@ export async function deleteWebsite(websiteId: string) {
|
||||
|
||||
return transaction(
|
||||
async tx => {
|
||||
await tx.sessionRecording.deleteMany({
|
||||
where: { websiteId },
|
||||
});
|
||||
|
||||
await tx.revenue.deleteMany({
|
||||
where: { websiteId },
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user