Skip to content

Commit

Permalink
add plausible to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
vernaillen committed May 22, 2024
1 parent fee7b55 commit 232f78e
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 9 deletions.
4 changes: 4 additions & 0 deletions docs/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export default defineNuxtConfig({
'@nuxt/ui',
'@nuxt/fonts',
'@nuxthq/studio',
'@nuxtjs/plausible',
'nuxt-og-image'
],
eslint: {
Expand Down Expand Up @@ -35,6 +36,9 @@ export default defineNuxtConfig({
routeRules: {
'/api/search.json': { prerender: true }
},
plausible: {
apiHost: 'https://wpnuxt.com/plio'
},
devtools: {
enabled: true
},
Expand Down
1 change: 1 addition & 0 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
},
"devDependencies": {
"@nuxthq/studio": "^1.1.0",
"@nuxtjs/plausible": "^1.0.0",
"vue-tsc": "^2.0.19"
}
}
12 changes: 12 additions & 0 deletions docs/vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"rewrites": [
{
"source": "/plio/js/script.js",
"destination": "https://plausible.io/js/script.js"
},
{
"source": "/plio/api/event",
"destination": "https://plausible.io/api/event"
}
]
}
38 changes: 29 additions & 9 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 232f78e

Please sign in to comment.