Skip to content

Commit

Permalink
umami update
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexRoehm committed Nov 16, 2024
1 parent ecff84a commit 74f95df
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 14 deletions.
9 changes: 0 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,11 @@ LABEL authors="Alex Roehm"
ARG VERSION
ARG BUILDTIME
ARG REVISION
ARG NUXT_PUBLIC_URL
ARG NUXT_PUBLIC_UMAMI_HOST
ARG NUXT_PUBLIC_UMAMI_ID
ARG NUXT_PUBLIC_SKIN
ARG NUXT_PUBLIC_ENABLE_DARK_MODE
ARG NUXT_PUBLIC_LOGO
ARG NUXT_PUBLIC_LOGO_DARK
ARG NUXT_PUBLIC_EXT_MENU_DE

ENV DATABASE_PATH=/data
ENV DATABASE_FILE=podcasts.sqlite
ENV DATA_PATH=/var/www


RUN apt-get update && apt-get install -y \
curl dumb-init logrotate nginx vim \
&& rm -rf /var/lib/apt/lists/*
Expand Down
28 changes: 24 additions & 4 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ function setEnvUndefinedWhenEmpty( envvar: string | undefined ) :string | undefi

export default defineNuxtConfig({
modules: [
'@nuxtjs/i18n', '@nuxtjs/tailwindcss', '@nuxtjs/color-mode'
'@nuxtjs/i18n', '@nuxtjs/tailwindcss', '@nuxtjs/color-mode', 'nuxt-umami'
],
extends: [ 'nuxt-umami' ],

i18n: {
strategy: 'prefix_except_default',
defaultLocale: 'de',
Expand All @@ -45,12 +45,14 @@ export default defineNuxtConfig({
lazy: true,
langDir: 'locales',
},

colorMode: {
preference: 'system', // default value of $colorMode.preference
fallback: 'light', // fallback value if not system preference found
classSuffix: '',
classPrefix: '',
},

// css: [ './assets/css/tailwind.css'
// ],
// app: {
Expand All @@ -59,6 +61,20 @@ export default defineNuxtConfig({
// mode: 'out-in'
// }
// },
umami: {
id: setEnv(process.env.NUXT_PUBLIC_UMAMI_ID,''),
host: setEnv(process.env.NUXT_PUBLIC_UMAMI_HOST,''),
autoTrack: true,
// proxy: 'cloak',
// useDirective: true,
// ignoreLocalhost: true,
// excludeQueryParams: false,
// domains: ['cool-site.app', 'my-space.site'],
// customEndpoint: '/my-custom-endpoint',
// enabled: false,
// logErrors: true,
},

runtimeConfig: {
public: {
url: process.env.NUXT_PUBLIC_URL,
Expand All @@ -72,16 +88,20 @@ export default defineNuxtConfig({
umamiActive: setEnvBool(process.env.NUXT_PUBLIC_UMAMI_ID)
}
},

appConfig: {
umami: {
autoTrack: setEnvBool(process.env.NUXT_PUBLIC_UMAMI_ID),
version: 2
}},

// nitro: {
// routeRules: {
// "/api/**": { proxy: 'localhost:3003' },
// "/s/**": { proxy: 'localhost:3003' }
// }
// },
devtools: { enabled: false }
})
devtools: { enabled: false },

compatibilityDate: '2024-11-16'
})
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"dependencies": {
"id3-parser": "^3.0.0",
"jwt-payloader": "^1.0.1",
"nuxt-umami": "^2.6.3"
"nuxt-umami": "^3.0.2"
},
"resolutions": {
"string-width": "4.2.3"
Expand Down

0 comments on commit 74f95df

Please sign in to comment.