Skip to content

Commit

Permalink
move config to nuxt config
Browse files Browse the repository at this point in the history
  • Loading branch information
walsh9 committed Dec 4, 2023
1 parent 16e1f68 commit b3881e4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
17 changes: 17 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { sentryVitePlugin } from '@sentry/vite-plugin'

export default defineNuxtConfig({
app: {
pageTransition: false,
Expand Down Expand Up @@ -59,6 +61,21 @@ export default defineNuxtConfig({
],
},
},
plugins: [
process.env.SENTRY_ENV === 'development'
? null
: sentryVitePlugin({
include: '.nuxt/dist',
ignore: ['node_modules', 'nuxt.config.ts'],
org: 'nypublicradio',
project: 'gothamist-vue-3',
authToken: process.env.SENTRY_AUTH_TOKEN,
}),
],
},
sourcemap: {
client: true,
server: true,
},
imports: {
dirs: [
Expand Down
15 changes: 0 additions & 15 deletions vite.config.js

This file was deleted.

0 comments on commit b3881e4

Please sign in to comment.