Skip to content

Commit

Permalink
fix app insights key usage...
Browse files Browse the repository at this point in the history
  • Loading branch information
Recidvst committed Jun 22, 2024
1 parent 1117410 commit 54706f3
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ jobs:
name: Build and Deploy Job
env:
NODE_VERSION: 16.18.0
APP_INSIGHTS_CS: ${{ secrets.GITHUB_TOKEN }}
APP_INSIGHTS_CS: ${{ secrets.APP_INSIGHTS_CS }}
APP_INSIGHTS_KEY: ${{ secrets.APP_INSIGHTS_KEY }}
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -39,7 +40,8 @@ jobs:
###### End of Repository/Build Configurations ######
env:
NODE_VERSION: 16.18.0
APP_INSIGHTS_CS: ${{ secrets.GITHUB_TOKEN }}
APP_INSIGHTS_CS: ${{ secrets.APP_INSIGHTS_CS }}
APP_INSIGHTS_KEY: ${{ secrets.APP_INSIGHTS_KEY }}

close_pull_request_job:
if: github.event_name == 'pull_request' && github.event.action == 'closed'
Expand Down
21 changes: 19 additions & 2 deletions nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default {
'@nuxtjs/dotenv',
'@nuxtjs/pwa',
'@nuxtjs/sitemap',
'@nuxtjs/applicationinsights',
'@nuxtjs/applicationinsights'
],

// Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
Expand Down Expand Up @@ -98,7 +98,11 @@ export default {
},

appInsights: {
instrumentationKey: process.env.APP_INSIGHTS_CS,
instrumentationKey: process.env.APP_INSIGHTS_KEY,
config: {
enableLiveMetrics: true,
enableDebug: true,
},
},

// PWA module configuration: https://go.nuxtjs.dev/pwa
Expand Down Expand Up @@ -141,6 +145,19 @@ export default {
'postcss-custom-properties': false,
},
},
html: {
minify: {
collapseBooleanAttributes: true,
decodeEntities: true,
minifyCSS: true,
minifyJS: true,
processConditionalComments: true,
removeEmptyAttributes: true,
removeRedundantAttributes: true,
trimCustomFragments: true,
useShortDoctype: true,
},
},
},

generate: {
Expand Down

0 comments on commit 54706f3

Please sign in to comment.