feat: add SENTRY_RELEASE env (#4912)
Add support for a new SENTRY_RELEASE and SENTRY_ENVIRONMENT env. It is optional and allows to init sentry with a Release version and an env (used internally at Twenty). Docker image have been updated do intergrate the new env as an Argument
This commit is contained in:
@ -13,7 +13,7 @@ export default defineConfig(({ command, mode }) => {
|
||||
/*
|
||||
Using explicit env variables, there is no need to expose all of them (security).
|
||||
*/
|
||||
const { REACT_APP_SERVER_BASE_URL } = env;
|
||||
const { REACT_APP_SERVER_BASE_URL, SENTRY_RELEASE, ENVIRONMENT } = env;
|
||||
|
||||
const isBuildCommand = command === 'build';
|
||||
|
||||
@ -62,6 +62,8 @@ export default defineConfig(({ command, mode }) => {
|
||||
define: {
|
||||
'process.env': {
|
||||
REACT_APP_SERVER_BASE_URL,
|
||||
SENTRY_RELEASE,
|
||||
ENVIRONMENT,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user