Update packages/integrations/vercel/README.md

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
This commit is contained in:
Chris 2023-09-04 10:28:17 +02:00 committed by GitHub
parent 5494466475
commit 05df84f6b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -111,8 +111,9 @@ export default defineConfig({
#### `beforeSend` #### `beforeSend`
To define the `beforeSend` function, you need to create a separate file inside your root called `vercel-web-analytics.ts`. `beforeSend` is a function that can modify analytics event data before it's sent to Vercel.
If you're not using TypeScript, you can define the function inside `vercel-web-analytics.js`.
Define this function in a separate file at the root of your project called `vercel-web-analytics.ts` (or `vercel-web-analytics.js` if you're not using TypeScript).
```ts ```ts
// vercel-web-analytics.ts // vercel-web-analytics.ts