You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is recommended that you add the script tag at the bottom of the page so it doesn’t block other critical JavaScript.
24
+
24
25
2. Call `window.SentryToolbar.init(initConfig)` to set up a toolbar instance on each page where you want to see the Dev Toolbar.
25
26
```html
26
27
<html>
@@ -60,12 +61,13 @@ window.SentryToolbar.init({
60
61
environment:'production'
61
62
});
62
63
```
64
+
And you can include any additional fields from this list:
63
65
64
66
| Field Name | Type | Description | Default Value |
65
67
| ----- | ----- | ----- | ----- |
66
68
|`organizationSlug`|`string`| The organization that users should login to. For example \'acme\'|*Required Value*|
67
69
|`projectIdOrSlug`|`string \| number`| The project for which this website/webapp is associated. |*Required Value*|
68
-
|`environment (optional)`|`string \| string[] \| undefined`| The environment of this deployment. Used to narrow search results in the Toolbar UI. Set to `undefined` or `""` or `\[\]` if you want to see results from all environments. |`undefined`|
70
+
|`environment (optional)`|`string \| string[] \| undefined`| The environment of this deployment. Used to narrow search results in the Toolbar UI. Set to `undefined` or `""` or `[]` if you want to see results from all environments. |`undefined`|
69
71
|`placement (optional)`|`'right-edge' \| 'bottom-right-corner'`| Where to render the toolbar on the screen. |`'right-edge'`|
70
72
|`theme (optional)`|`'system' \| 'dark' \| 'light'`| Whether to use dark or light mode. |`'system'`|
71
73
|`featureFlags (optional)`|`FeatureFlagAdapter \| undefined`| See [Implement FeatureFlagAdapter](/product/dev-toolbar/setup//#implement-feature-flag-adapter) below |`undefined`|
0 commit comments