File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Pximg proxy base URLs
2- # Nuxt convention: NUXT_PUBLIC_PXIMG_BASE_URL_I, or legacy VITE_PXIMG_BASEURL_I
3- VITE_PXIMG_BASEURL_I = " /-/"
4- VITE_PXIMG_BASEURL_S = " /~/"
2+ NUXT_PUBLIC_PXIMG_BASEURL_I = " /-/"
3+ NUXT_PUBLIC_PXIMG_BASEURL_S = " /~/"
54
65# Google Analytics
7- VITE_GOOGLE_ANALYTICS_ID =
6+ NUXT_PUBLIC_GOOGLE_ANALYTICS_ID =
87
98# UA blacklist (JSON array of strings to block)
10- # Nuxt convention: NUXT_UA_BLACKLIST, or legacy UA_BLACKLIST
11- UA_BLACKLIST = []
9+ NUXT_UA_BLACKLIST = []
Original file line number Diff line number Diff line change 11<template lang="pug">
2- NaiveuiProvider#app-full-container
2+ NaiveuiProvider#app-full-container (
3+ :data-env ='siteConfig.public.siteEnv' ,
4+ :data-route-name ='route.name'
5+ )
36 SiteNoticeBanner
47 SiteHeader
58
@@ -27,6 +30,8 @@ const SideNav = defineAsyncComponent(
2730)
2831
2932const userStore = useUserStore ()
33+ const route = useRoute ()
34+ const siteConfig = useRuntimeConfig ()
3035
3136onMounted (async () => {
3237 if (! existsSessionId ()) {
Original file line number Diff line number Diff line change @@ -62,15 +62,16 @@ export default defineNuxtConfig({
6262
6363 runtimeConfig : {
6464 // Server-only (overridable via NUXT_UA_BLACKLIST or legacy UA_BLACKLIST)
65- uaBlacklist : process . env . UA_BLACKLIST || '' ,
65+ uaBlacklist : process . env . UA_BLACKLIST || '[] ' ,
6666 public : {
6767 // Overridable via NUXT_PUBLIC_* or legacy VITE_* env vars
6868 pximgBaseUrlI : process . env . VITE_PXIMG_BASEURL_I || '/-/' ,
6969 pximgBaseUrlS : process . env . VITE_PXIMG_BASEURL_S || '/~/' ,
7070 googleAnalyticsId : process . env . VITE_GOOGLE_ANALYTICS_ID || '' ,
71- siteEnv : process . env . NODE_ENV === 'production' ? 'production' : 'development' ,
71+ siteEnv :
72+ process . env . NODE_ENV === 'production' ? 'production' : 'development' ,
7273 } ,
7374 } ,
7475
7576 devtools : { enabled : true } ,
76- } )
77+ } )
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ export default defineEventHandler(async (event) => {
4242
4343function isAccepted ( event : any ) {
4444 const config = useRuntimeConfig ( )
45- const uaBlacklist = config . uaBlacklist || process . env . UA_BLACKLIST || '[]'
45+ const uaBlacklist = config . uaBlacklist || '[]'
4646 try {
4747 const list : string [ ] = JSON . parse ( uaBlacklist )
4848 const ua = getHeader ( event , 'user-agent' ) ?? ''
You can’t perform that action at this time.
0 commit comments