Skip to content

Commit

Permalink
feat: add seo module
Browse files Browse the repository at this point in the history
  • Loading branch information
itsacoyote committed May 23, 2024
1 parent 9f24c89 commit 2a65b7e
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
# Production license for @nuxt/ui-pro, get one at https://ui.nuxt.com/pro/purchase
NUXT_UI_PRO_LICENSE=

# Public URL, used for OG Image when running nuxt generate
NUXT_PUBLIC_SITE_URL=
1 change: 0 additions & 1 deletion .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ jobs:
build_and_preview:
env:
NUXT_UI_PRO_LICENSE: ${{ secrets.NUXT_UI_PRO_LICENSE }}
NUXT_PUBLIC_SITE_URL: ${{ secrets.NUXT_PUBLIC_SITE_URL }}
if: ${{ github.event_name == 'workflow_dispatch' || github.event.pull_request.head.repo.full_name == github.repository }}
runs-on: ubuntu-latest
outputs:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ jobs:
build_and_deploy:
env:
NUXT_UI_PRO_LICENSE: ${{ secrets.NUXT_UI_PRO_LICENSE }}
NUXT_PUBLIC_SITE_URL: ${{ secrets.NUXT_PUBLIC_SITE_URL }}
if: ${{ github.event.repository.full_name == github.repository }}
runs-on: ubuntu-latest
steps:
Expand Down
Binary file modified bun.lockb
Binary file not shown.
17 changes: 16 additions & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,21 @@ import { zksyncIcons } from './assets/zksync-icons';
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
extends: ['@nuxt/ui-pro'],
modules: ['@nuxt/content', '@nuxt/ui', '@nuxt/fonts', '@nuxthq/studio', 'nuxt-og-image', '@nuxt/image', 'nuxt-gtag'],
modules: [
'@nuxt/content',
'@nuxt/ui',
'@nuxt/fonts',
'@nuxthq/studio',
'nuxt-og-image',
'@nuxt/image',
'nuxt-gtag',
'@nuxtjs/seo',
],
site: {
name: 'zkSync Community Code',
url: process.env.NUXT_SITE_ENV ? 'https://staging-code.zksync.io' : 'https://code.zksync.io',
indexable: false,
},
app: {
head: {
link: [{ rel: 'stylesheet', href: '/main.css' }],
Expand Down Expand Up @@ -81,5 +95,6 @@ export default defineNuxtConfig({
gtag: {
id: 'G-QHP3K0NN1M',
},
site: { indexable: true },
},
});
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"@nuxt/fonts": "^0.5.1",
"@nuxt/image": "^1.6.0",
"@nuxt/ui-pro": "^1.1.0",
"@nuxtjs/seo": "^2.0.0-rc.10",
"dayjs": "^1.11.10",
"nuxt": "^3.11.2",
"nuxt-gtag": "^2.0.6",
Expand Down

0 comments on commit 2a65b7e

Please sign in to comment.