File tree Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 66jobs :
77 build-and-deploy :
88 runs-on : ubuntu-latest
9+ env :
10+ NEXT_PUBLIC_GOOGLE_ANALYTICS : ${{ secrets.NEXT_PUBLIC_GOOGLE_ANALYTICS }}
911 steps :
1012 - name : Checkout
1113
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ const siteMetadata = {
2525 // plausibleDataDomain: '', // e.g. tailwind-nextjs-starter-blog.vercel.app
2626 simpleAnalytics : false , // true or false
2727 // umamiWebsiteId: '', // e.g. 123e4567-e89b-12d3-a456-426614174000
28- googleAnalyticsId : 'G-HE9Y53FXBM' , // e.g. UA-000000-2 or G-XXXXXXX
28+ googleAnalyticsId : process . env . NEXT_PUBLIC_GOOGLE_ANALYTICS , // e.g. UA-000000-2 or G-XXXXXXX
2929 // posthogAnalyticsId: '', // posthog.init e.g. phc_5yXvArzvRdqtZIsHkEm3Fkkhm3d0bEYUXCaFISzqPSQ
3030 } ,
3131 newsletter : {
Original file line number Diff line number Diff line change 77 "dev" : " next dev" ,
88 "build" : " next build && node ./scripts/generate-sitemap" ,
99 "serve" : " next start" ,
10+ "export" : " next export" ,
1011 "analyze" : " cross-env ANALYZE=true next build" ,
1112 "lint" : " next lint --fix --dir pages --dir components --dir lib --dir layouts --dir scripts" ,
1213 "prepare" : " husky install"
You can’t perform that action at this time.
0 commit comments