william
william
TTCTheo's Typesafe Cult
Created by william on 1/24/2024 in #questions
GKE can't read react env key
const PUBLISHABLE_KEY = process.env.REACT_APP_CLERK_PUBLISHABLE_KEY if (!PUBLISHABLE_KEY) { throw new Error("Missing Publishable Key") } ------------------ but i already add in deploy yaml file: env: - name: REACT_APP_CLERK_PUBLISHABLE_KEY valueFrom: secretKeyRef: name: clerk-secret key: REACT_APP_CLERK_PUBLISHABLE_KEY and get get this key in this pod by kubectl exec -it <pod-name> -- /bin/sh echo $REACT_APP_CLERK_PUBLISHABLE_KEY ----------------------------------------- why still my deploy app can't read?
1 replies