Skip to content

Commit

Permalink
Add sdk to verdaccio config
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiborza committed Jul 2, 2024
1 parent 8ae7a50 commit 69b1bb2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions dev-packages/e2e-tests/verdaccio-config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,12 @@ packages:
unpublish: $all
# proxy: npmjs # Don't proxy for E2E tests!

'@sentry/solidstart':
access: $all
publish: $all
unpublish: $all
# proxy: npmjs # Don't proxy for E2E tests!

'@sentry/svelte':
access: $all
publish: $all
Expand Down
10 changes: 5 additions & 5 deletions packages/solidstart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@

This SDK is considered ⚠️ **experimental and in an alpha state**. It may experience breaking changes. Please reach out
on [GitHub](https://github.com/getsentry/sentry-javascript/issues/new/choose) if you have any feedback or concerns. This
SDK is for [Solid Start](https://start.solidjs.com/). If you're using [Solid](https://www.solidjs.com/) see our Solid
SDK here.
SDK is for [Solid Start](https://start.solidjs.com/). If you're using [Solid](https://www.solidjs.com/) see our
[Solid SDK here](https://github.com/getsentry/sentry-javascript/tree/develop/packages/solid).

## Links

Expand Down Expand Up @@ -58,7 +58,7 @@ mount(() => <StartClient />, document.getElementById('app'));

### 3. Server-side Setup

Create an instrumentation file named `instrument.server.mjs` and add your initialization code for the server-side SDK.
Create an instrument file named `instrument.server.mjs` and add your initialization code for the server-side SDK.

```javascript
import * as Sentry from '@sentry/solidstart';
Expand All @@ -76,7 +76,7 @@ Then run your app
```bash
NODE_OPTIONS='--import=./instrument.server.mjs' yarn start
# or
NODE_OPTIONS='--require=./instrument.server.cjs' yarn start
NODE_OPTIONS='--require=./instrument.server.js' yarn start
```

# Solid Router
Expand All @@ -88,7 +88,7 @@ Wrap `Router`, `MemoryRouter` or `HashRouter` from `@solidjs/router` using `with
higher order component, which will enable Sentry to reach your router context.

```js
import { withSentryRouterRouting } from '@sentry/solid/solidrouter';
import { withSentryRouterRouting } from '@sentry/solidstart/solidrouter';
import { Route, Router } from '@solidjs/router';

const SentryRouter = Sentry.withSentryRouterRouting(Router);
Expand Down

0 comments on commit 69b1bb2

Please sign in to comment.