frontend deployment changes & stop prerendering (#7227)

* feat: frontend docker image

* build: tweak gc, disable prerendering

* feat: pass along UA

* fix: fallback to process.env

* build: remove this pr branch test

* fix: don't pin docker image ver
This commit is contained in:
Michael H.
2026-08-20 17:07:07 +00:00
committed by GitHub
parent f39a602be3
commit bee0c14b31
13 changed files with 221 additions and 80 deletions
@@ -0,0 +1,9 @@
import { tryUseNuxtApp } from '#imports'
// Nuxt's `useRequestHeaders` throws outside of a setup context, and `useBaseFetch` is
// called from plenty of places that no longer have one.
export function useVisitorUserAgent(): string | undefined {
if (!import.meta.server) return undefined
return tryUseNuxtApp()?.ssrContext?.event?.node?.req?.headers['user-agent']
}