Skip to content

Commit

Permalink
chore: fix playground
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Sep 15, 2024
1 parent 52e1fcb commit 575c4dd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions playground/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,10 @@ export default defineNuxtConfig({
scripts: {
debug: true,
},

nitro: {
prerender: {
failOnError: false,
},
},
})
2 changes: 1 addition & 1 deletion playground/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const thirdParties = [
},
{
name: 'Intercom',
path: '/third-parties/intercom',
path: '/third-parties/intercom/facade',
},
{
name: 'Stripe',
Expand Down
4 changes: 2 additions & 2 deletions playground/pages/third-parties/matomo-analytics.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ useHead({
})
// composables return the underlying api as a proxy object and the script state
const { status, _paq } = useScriptMatomoAnalytics({
const { status, proxy } = useScriptMatomoAnalytics({
matomoUrl: 'https://nuxt-scripts-demo.matomo.cloud',
siteId: '1',
})
_paq.push(['trackPageView'])
proxy._paq.push(['trackPageView'])
</script>

<template>
Expand Down

0 comments on commit 575c4dd

Please sign in to comment.