Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.
TypeScript albumsexif-extractiongeocodinglive-photomotion-photophoto-galleryphoto-sharingwebgl-viewer
fix(analytics): update GA environment variable to NUXT_PUBLIC_GTAG_ID
HoshinoSuzumi03b74f4732f4
diff --git a/.env.example b/.env.exampleindex 3acfee60..324180b9 100644--- a/.env.example+++ b/.env.example@@ -41,4 +41,4 @@ NUXT_OAUTH_GITHUB_CLIENT_SECRET=NUXT_ALLOW_INSECURE_COOKIE=false# Google Analytics Measurement ID (e.g. G-XXXXXXX)-CFRAME_GTAG=+NUXT_PUBLIC_GTAG_ID=diff --git a/docs/guide/configuration.md b/docs/guide/configuration.mdindex 244f21cd..826f7c35 100644--- a/docs/guide/configuration.md+++ b/docs/guide/configuration.md@@ -26,4 +26,4 @@ Whether using Docker or Docker Compose (.env) deployment, configuration is done| NUXT_OAUTH_GITHUB_CLIENT_ID | GitHub OAuth app Client ID | None | Yes || NUXT_OAUTH_GITHUB_CLIENT_SECRET | GitHub OAuth app Client Secret | None | Yes || NUXT_SESSION_PASSWORD | Password for encrypting sessions, 32-character random string | None | Yes |-| CFRAME_GTAG | Google Analytics Tracking ID | None | No |+| NUXT_PUBLIC_GTAG_ID | Google Analytics Tracking ID | None | No |diff --git a/docs/zh/guide/configuration.md b/docs/zh/guide/configuration.mdindex 7f4c1b17..9e6fd2aa 100644--- a/docs/zh/guide/configuration.md+++ b/docs/zh/guide/configuration.md@@ -26,4 +26,4 @@| NUXT_OAUTH_GITHUB_CLIENT_ID | GitHub OAuth 应用的 Client ID | 无 | 是 || NUXT_OAUTH_GITHUB_CLIENT_SECRET | GitHub OAuth 应用的 Client Secret | 无 | 是 || NUXT_SESSION_PASSWORD | 用于加密会话的密码,32 位随机字符串 | 无 | 是 |-| CFRAME_GTAG | Google Analytics 追踪 ID | 无 | 否 |+| NUXT_PUBLIC_GTAG_ID | Google Analytics 追踪 ID | 无 | 否 |diff --git a/nuxt.config.ts b/nuxt.config.tsindex 71a85f92..466cacb4 100644--- a/nuxt.config.ts+++ b/nuxt.config.ts@@ -98,8 +98,7 @@ export default defineNuxtConfig({},gtag: {- enabled: process.env.NODE_ENV === 'production' && !!process.env.CFRAME_GTAG,- id: process.env.CFRAME_GTAG || '',+ enabled: process.env.NODE_ENV === 'production'},colorMode: {