Skip to content

Commit

Permalink
Fix app insights in web
Browse files Browse the repository at this point in the history
  • Loading branch information
Bron N Thulke committed Jun 30, 2024
1 parent b0d72a6 commit d883d5d
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 2 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VUE_APP_APPINSIGHTS_CONNECTION_KEY=InstrumentationKey=af9a5c48-6afb-4b37-ae5b-bec83723a2dd;IngestionEndpoint=https://westus2-0.in.applicationinsights.azure.com/;LiveEndpoint=https://westus2.livediagnostics.monitor.azure.com/;ApplicationId=0bbe6ded-07fa-497a-b09a-90c2eda99659
27 changes: 27 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"@vue/cli-plugin-eslint": "~4.2.0",
"@vue/cli-service": "~4.2.0",
"babel-eslint": "^10.0.3",
"dotenv-webpack": "^8.1.0",
"eslint": "^6.7.2",
"eslint-plugin-vue": "^6.1.2",
"vue-template-compiler": "^2.6.11"
Expand Down
3 changes: 1 addition & 2 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ Vue.config.productionTip = false

const appInsights = new ApplicationInsights({
config: {
connectionString: "process.env.VUE_APP_APPINSIGHTS_CONNECTION_KEY"
/* …Other Configuration Options… */
connectionString: process.env.VUE_APP_APPINSIGHTS_CONNECTION_KEY
}
});

Expand Down
5 changes: 5 additions & 0 deletions vue.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
const Dotenv = require('dotenv-webpack');

module.exports = {
configureWebpack: {
// devtool: "source-map",
plugins: [
new Dotenv()
]
},
devServer: {
proxy: {
Expand Down

0 comments on commit d883d5d

Please sign in to comment.