more env stuff
All checks were successful
CI/CD Pipeline / Build and Push App Docker Image (push) Successful in 1m18s
CI/CD Pipeline / Build and Push PocketBase Docker Image (push) Successful in 7s
CI/CD Pipeline / Deploy to Kubernetes (push) Successful in 41s

This commit is contained in:
yohlo
2026-02-09 12:07:45 -06:00
parent 243fb094e1
commit 70a032db20
4 changed files with 48 additions and 8 deletions

12
src/hooks/use-config.ts Normal file
View File

@@ -0,0 +1,12 @@
import { useSuspenseQuery } from '@tanstack/react-query'
import { getConfig } from '@/lib/config'
export function useConfig() {
const { data } = useSuspenseQuery({
queryKey: ['config'],
queryFn: () => getConfig(),
staleTime: Infinity,
})
return data
}