Skip to content

Commit

Permalink
fix version and remove code leftover
Browse files Browse the repository at this point in the history
  • Loading branch information
hobbitronics committed Sep 27, 2024
1 parent c76fc77 commit 0e579b3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 0 additions & 4 deletions src/locales/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,5 @@ const allLocales = {
fr,
ko,
}
contextualRequire.keys().forEach((fileName) => {
const messages = contextualRequire(fileName)
const lang = fileName.match('/(.*).json')[1]
})

export default allLocales
4 changes: 2 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { configuredRouter as router, configuredVuetify } from './plugins'
import * as Sentry from '@sentry/vue'
import Vue from 'vue'

const dsn = process.env.VUE_APP_SENTRY_DSN
const release = process.env.VUE_APP_VERSION
const dsn = import.meta.env.VITE_SENTRY_DSN
const release = __APP_VERSION__

if (location.hostname !== 'profile.gtis.guru') {
console.debug('Environment:', location.hostname, 'Release:', release, 'DSN:', dsn)
Expand Down
2 changes: 2 additions & 0 deletions vite.config.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { version } from './package.json'
import path from 'path'
import { VuetifyResolver } from 'unplugin-vue-components/resolvers'
import Components from 'unplugin-vue-components/vite'
Expand All @@ -24,6 +25,7 @@ export default defineConfig({
define: {
// This is necessary in Vue 2 codebases. It is automatic in Vue 3
__VUE_PROD_DEVTOOLS__: 'false',
__APP_VERSION__: JSON.stringify(version),
},
//resolve @/ to src/
resolve: {
Expand Down

0 comments on commit 0e579b3

Please sign in to comment.