Skip to content

Commit

Permalink
test if plugin is loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
BacLuc committed Aug 19, 2023
1 parent 3b6f48f commit add6b7a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const plugins = [
]
const sentryAuthToken = process.env.SENTRY_AUTH_TOKEN
if (sentryAuthToken) {
console.error("Adding sentry vite plugin")

Check failure on line 23 in frontend/vite.config.js

View workflow job for this annotation

GitHub Actions / Lint: Frontend (ESLint)

Replace `"Adding·sentry·vite·plugin"` with `'Adding·sentry·vite·plugin'`

Check failure on line 23 in frontend/vite.config.js

View workflow job for this annotation

GitHub Actions / Lint: Frontend (ESLint)

Replace `"Adding·sentry·vite·plugin"` with `'Adding·sentry·vite·plugin'`
plugins.push(
sentryVitePlugin({
authToken: sentryAuthToken,
Expand All @@ -34,6 +35,8 @@ if (sentryAuthToken) {
},
})
)
} else {
console.error("No SENTRY_AUTH_TOKEN")

Check failure on line 39 in frontend/vite.config.js

View workflow job for this annotation

GitHub Actions / Lint: Frontend (ESLint)

Replace `"No·SENTRY_AUTH_TOKEN"` with `'No·SENTRY_AUTH_TOKEN'`

Check failure on line 39 in frontend/vite.config.js

View workflow job for this annotation

GitHub Actions / Lint: Frontend (ESLint)

Replace `"No·SENTRY_AUTH_TOKEN"` with `'No·SENTRY_AUTH_TOKEN'`
}

export default defineConfig(({ mode }) => ({
Expand Down
3 changes: 3 additions & 0 deletions print/nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ export default {

const sentryAuthToken = process.env.SENTRY_AUTH_TOKEN
if (sentryAuthToken) {
console.error("Adding sentry webpack plugin")

Check failure on line 162 in print/nuxt.config.js

View workflow job for this annotation

GitHub Actions / Lint: Print (ESLint)

Replace `"Adding·sentry·webpack·plugin"` with `'Adding·sentry·webpack·plugin'`

Check failure on line 162 in print/nuxt.config.js

View workflow job for this annotation

GitHub Actions / Lint: Print (ESLint)

Replace `"Adding·sentry·webpack·plugin"` with `'Adding·sentry·webpack·plugin'`
config.plugins.push(
sentryWebpackPlugin({
authToken: sentryAuthToken,
Expand All @@ -173,6 +174,8 @@ export default {
},
})
)
} else {
console.error("No SENTRY_AUTH_TOKEN")

Check failure on line 178 in print/nuxt.config.js

View workflow job for this annotation

GitHub Actions / Lint: Print (ESLint)

Replace `"No·SENTRY_AUTH_TOKEN"` with `'No·SENTRY_AUTH_TOKEN'`

Check failure on line 178 in print/nuxt.config.js

View workflow job for this annotation

GitHub Actions / Lint: Print (ESLint)

Replace `"No·SENTRY_AUTH_TOKEN"` with `'No·SENTRY_AUTH_TOKEN'`
}
},
postcss: {
Expand Down

0 comments on commit add6b7a

Please sign in to comment.