Skip to content

Commit

Permalink
Merge pull request #12 from zkSync-Community-Hub/itsacoyote-devrl-696…
Browse files Browse the repository at this point in the history
…-add-analytics-to-community-code

 add analytics and seo modules to community code
  • Loading branch information
itsacoyote authored May 23, 2024
2 parents d648220 + 0360bfe commit 54e4731
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ jobs:
run: bun install
- name: "Deploy target: production 🚀"
run: bun run build
# TODO: ask about below
# env:
# RUDDERSTACK_WRITE_KEY: "${{ secrets.RUDDERSTACK_WRITE_KEY }}"
# RUDDERSTACK_DATA_PLANE_URL: "${{ secrets.RUDDERSTACK_DATA_PLANE_URL }}"

- uses: matter-labs/action-hosting-deploy@main
with:
Expand Down
Binary file modified bun.lockb
Binary file not shown.
9 changes: 8 additions & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
extends: [['github:matter-labs/docs-nuxt-template', { install: true }]],
modules: ['@nuxt/content', '@nuxt/ui', '@nuxt/eslint', '@nuxtjs/seo'],
modules: ['@nuxt/content', '@nuxt/ui', '@nuxt/eslint', '@nuxtjs/seo', 'nuxt-gtag'],
site: {
name: 'Community Code',
url: process.env.NUXT_SITE_ENV ? 'https://staging-code.zksync.io' : 'https://code.zksync.io',
Expand Down Expand Up @@ -29,4 +29,11 @@ export default defineNuxtConfig({
routeRules: {
'/api/search.json': { prerender: true },
},
$production: process.env.NUXT_SITE_ENV
? {}
: {
gtag: {
id: 'G-QHP3K0NN1M',
},
},
});
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"@nuxtjs/seo": "^2.0.0-rc.10",
"dayjs": "^1.11.10",
"nuxt": "^3.11.2",
"nuxt-gtag": "^2.0.6",
"nuxt-og-image": "^3.0.0-rc.53",
"rehype-katex": "^7.0.0",
"remark-math": "^6.0.0",
Expand Down

0 comments on commit 54e4731

Please sign in to comment.