Skip to content

Commit

Permalink
feat: generate sitemap with most popular tags
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Jun 13, 2023
1 parent 1448462 commit 98f630e
Show file tree
Hide file tree
Showing 6 changed files with 256 additions and 304 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ PROXY_URL=

MATOMO_HOST=
MATOMO_SITE_ID=
MATOMO_API_KEY=

MONETIZATION_URI=$ilp.uphold.com/Hf3zAn3pQ7fD

Expand Down
35 changes: 35 additions & 0 deletions nuxt.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
import { defineNuxtConfig } from 'nuxt/config'

export default defineNuxtConfig({
// https://nuxt.com/docs/getting-started/deployment#static-hosting
ssr: false,

nitro: {
prerender: {
crawlLinks: true
}
},

runtimeConfig: {
MATOMO_API_KEY: process.env.MATOMO_API_KEY,

public: {
NODE_ENV: process.env.NODE_ENV,

Expand All @@ -27,8 +36,34 @@ export default defineNuxtConfig({
modules: [
// '@vite-pwa/nuxt'
// '@nuxtjs/sentry',
'nuxt-simple-sitemap'
],

sitemap: {
siteUrl: `https://${process.env.APP_DOMAIN}`,

discoverImages: false,

sitemaps: {
pages: {
defaults: {
priority: 0.7,
changefreq: 'weekly'
// lastmod: new Date()
}
}
}
},

routeRules: {
'/posts': {
sitemap: {
priority: 1,
changefreq: 'always'
}
}
},

auth: {
strategies: {
local: {
Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,33 +16,34 @@
"dependencies": {
"@headlessui-float/vue": "^0.11.2",
"@headlessui/tailwindcss": "^0.1.3",
"@headlessui/vue": "^1.7.13",
"@headlessui/vue": "^1.7.14",
"@heroicons/vue": "^2.0.18",
"@nuxtjs/sentry": "^7.3.0",
"@sidebase/nuxt-auth": "0.6.0-beta.2",
"@tailwindcss/forms": "^0.5.3",
"@tanstack/vue-virtual": "3.0.0-beta.54",
"@vite-pwa/nuxt": "^0.0.9",
"@vite-pwa/nuxt": "^0.1.0",
"@vueuse/components": "^10.1.2",
"@vueuse/core": "^10.1.2",
"js-abbreviation-number": "^1.4.0",
"lodash-es": "^4.17.21",
"notiwind": "^2.0.1",
"nuxt": "^3.5.2",
"nuxt": "^3.5.3",
"qs": "^6.11.2",
"tailwindcss": "^3.3.2",
"tippy.js": "^6.3.7",
"vue-matomo": "^4.2.0",
"vue-safe-teleport": "^0.1.2",
"vue-sonner": "^0.3.2",
"vue-tippy": "^6.2.0",
"vuetify": "^3.3.2"
"vuetify": "^3.3.4"
},
"devDependencies": {
"@types/lodash-es": "^4.17.7",
"@types/qs": "^6.9.7",
"autoprefixer": "^10.4.14",
"jest": "^29.5.0",
"nuxt-simple-sitemap": "^2.6.2",
"postcss": "^8.4.24",
"prettier": "^2.8.8",
"prettier-plugin-tailwindcss": "^0.3.0",
Expand Down
Loading

0 comments on commit 98f630e

Please sign in to comment.