diff --git a/docker/nginx/default b/docker/nginx/default index 9451c9e..6fe36ef 100644 --- a/docker/nginx/default +++ b/docker/nginx/default @@ -18,7 +18,7 @@ server { tcp_nodelay on; keepalive_timeout 65; access_log /var/log/nginx/mp3access.log custom buffer=1k flush=1m; - root /var/www/public; + root /var/www/; } location /s/ { diff --git a/nuxt.config.ts b/nuxt.config.ts index 761f3d5..65a2feb 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -19,6 +19,7 @@ export default defineNuxtConfig({ modules: [ '@nuxtjs/i18n', '@nuxtjs/tailwindcss', '@nuxtjs/color-mode' ], + extends: [ 'nuxt-umami' ], i18n: { strategy: 'prefix_except_default', defaultLocale: 'de', diff --git a/package.json b/package.json index 8fb6f5b..e0d3272 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,8 @@ }, "dependencies": { "id3-parser": "^3.0.0", - "jwt-payloader": "^1.0.1" + "jwt-payloader": "^1.0.1", + "nuxt-umami": "^2.6.0" }, "resolutions": { "string-width": "4.2.3" diff --git a/pages/[episodeslug]/index.vue b/pages/[episodeslug]/index.vue index 985c9b9..7007240 100644 --- a/pages/[episodeslug]/index.vue +++ b/pages/[episodeslug]/index.vue @@ -212,7 +212,6 @@ async function changePodcast(podcastid: number) { } } function play() { - const { $umami } = useNuxtApp(); - $umami("Playing " + episode.value.title) + umTrackEvent("Playing " + episode.value.title) }