Skip to content

Different ways to setup Sentry

Tominov Sergey edited this page Dec 11, 2022 · 1 revision

This plugin provides several configuration options.

Obviously you can configure all the settings using plugin options in vite.config.js, but there are another useful ways provided by sentry-cli you can use.

.sentryclirc

In .sentryclirc you can store your access tokens, org and other stuff in simple ini format. For details see the sentry docs about config file

Unfortunately it seems that you can't have multiple .sentryclirc's and can't place them anywhere except project root.

1

Environment variables

Sentry-cli support configuring by setting env variables, so you can simply pass sensitive data as env variable while building Environment variables

env

Properties files

The properties file is another way to configure sentry-cli. You can have multiple *.properties files and use one or another by setting configFile plugin option. About properties files at sentry

3

Clone this wiki locally