#ENV EXPERIMENTAL FEATS
5 messages · Page 1 of 1 (latest)
Just for future reference... looks like the secrets are set at built time at ssr cloudflare. And we can access the envs by the local runtme.
the point for "server" "secret" with default value, it dont take the default on the config file...and get undefined. are still happening when using get secret.
import { API_URL, API_TOKEN, getSecret } from "astro:env/server"
const NODE_ENV = getSecret("NODE_ENV")
BTW. GREAT FEATURE.
There might be a bug tbh! Feel free to open an issue on the cloudflare repo and ping me (@florian-lefebvre)