Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update docs for #91 #95

Merged
4 commits merged into from
Oct 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,24 @@ Workaround until close [sentry-javascript/#8693](https://github.com/getsentry/se
npm i @jill64/sentry-sveltekit-cloudflare
```

## Configuration

Add the following settings to your SvelteKit application's vite.config.js.

```js
// vite.config.js
import { sveltekit } from '@sveltejs/kit/vite'
import { defineConfig } from 'vite'

export default defineConfig({
plugins: [sveltekit()],
ssr: {
noExternal: ['@jill64/sentry-sveltekit-cloudflare']
}
// ...
})
```

## Usage

```js
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@
"access": "public"
},
"scripts": {
"dev": "cd packages/site && pnpm dev",
"build:pages": "pnpm build:lib && pnpm build:site && npx publint",
"build:lib": "cd packages/lib && pnpm build",
"build:site": "cd packages/site && pnpm build",
"preview": "pnpm build:lib && cd packages/site && pnpm preview",
"prepack": "pnpm build:lib",
"test:e2e": "npx playwright install && playwright test",
"lint": "npx prettier --check . --plugin prettier-plugin-svelte . && npx eslint && pnpm check",
Expand Down