Skip to content

Commits on Source 4

......@@ -174,6 +174,7 @@ build:staging:
NUXT_ENV_API_URL: https://staging.alboneon.xyz
NUXT_ENV_WEBSOCKET_URL: wss://staging.alboneon.xyz/ws
NUXT_SENTRY_FRONTEND_URL: $NUXT_STAGING_SENTRY_FRONTEND_URL
NUXT_SENTRY_RELEASE: $CI_COMMIT_TAG-staging
NUXT_SENTRY_ENVIRONMENT: staging
script:
- yarn run build
......@@ -194,6 +195,7 @@ build:release:
NUXT_ENV_API_URL: https://alboneon.xyz
NUXT_ENV_WEBSOCKET_URL: wss://alboneon.xyz/ws
NUXT_SENTRY_FRONTEND_URL: $NUXT_SENTRY_FRONTEND_URL
NUXT_SENTRY_RELEASE: $CI_COMMIT_TAG
NUXT_SENTRY_ENVIRONMENT: production
script:
- yarn run build
......
## [0.11.4](https://gitlab.pentacore.se/penta/alboneon/compare/v0.11.3...v0.11.4) (2022-10-26)
### Bug Fixes
* **sentry:** add release version to sentry logs ([61bd0e5](https://gitlab.pentacore.se/penta/alboneon/commit/61bd0e50a72998757206d743ec2480ba9fd1f18d))
## [0.11.3](https://gitlab.pentacore.se/penta/alboneon/compare/v0.11.2...v0.11.3) (2022-10-26)
......
{
"name": "alboneon",
"version": "0.11.3",
"version": "0.11.4",
"description": "A Pen & Paper party management system",
"main": "index.js",
"repository": "https://github.com/pentacore/RPG.git",
......
......@@ -3,6 +3,7 @@ import path from 'path'
/**
* @type {import('@nuxt/types').Configuration}
* @property {import('@nuxtjs/sentry').ModuleConfiguration} sentry
*/
export default {
// Disable server-side rendering: https://go.nuxtjs.dev/ssr-mode
......@@ -76,9 +77,18 @@ export default {
},
},
/**
* Sentry module configuration: https://sentry.nuxtjs.org/guide/setup.html#configuration
*/
sentry: {
dsn: process.env.NUXT_SENTRY_FRONTEND_URL ?? "https://[email protected]/2",
environment: process.env.NUXT_SENTRY_ENVIRONMENT ?? "development",
config: {
release: process.env.NUXT_SENTRY_RELEASE ?? "development",
},
clientIntegrations: {
ReportingObserver: false
},
tracing: {
tracesSampleRate: 1.0,
vueOptions: {
......@@ -121,3 +131,5 @@ export default {
target: 'static'
}
......@@ -10,7 +10,8 @@ export const config = {
Sentry: {
dsn: process.env.SENTRY_BACKEND_URL ?? "https://[email protected]/3",
environment: process.env.SENTRY_ENVIRONMENT ?? "development",
}
},
version: process.env.ALBONEON_VERSION ?? "development",
}
export default config
......@@ -22,6 +22,7 @@ Database.connectToDB().then(async mongo => {
Sentry.init({
environment: Config.Sentry.environment,
dsn: Config.Sentry.dsn as string,
release: Config.version,
integrations: [
// enable HTTP calls tracing
new Sentry.Integrations.Http({tracing: true}),
......