This is a simple example project demonstrating how to integrate the @rrwebcloud/js-client into a Vite application.
- Bun (v1.0.0 or higher recommended)
-
Install dependencies:
bun install
Note: This project uses
resolutionsinpackage.jsonto manage specific versions of@rrwebpackages required by the alpha client. -
Start the development server:
bun run dev
-
Open the application:
Navigate to
http://localhost:5173(or the URL shown in your terminal).
- rrwebCloud Integration: Demonstrates how to import and configure the rrwebCloud client.
- Recording: Automatically starts recording when the page loads.
- Console Output: Logs the recording ID and retrieval URL to the browser console.
The rrwebCloud configuration can be found in src/rrwebcloud-init.js. It includes examples of:
- IMPORTANT: You must add your
publicAPIKeyin this file. - Setting a custom
serverUrl - Configuring
blockSelector - Managing
captureAssetssettings - Adding custom metadata (user ID, session ID, etc.)
MIT