Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/udibo_react_app/env.ts>getEnv

A React Framework for Deno that makes it easy to create highly interactive apps that have server side rendering with file based routing for both your UI and API.
Go to Latest
variable getEnv
import { getEnv } from "https://deno.land/x/udibo_react_app@0.17.0/env.ts";

A function that takes a string key representing an environment variable and returns its value. If the code is running on the server, it uses the Deno.env.get function to retrieve the value of the environment variable. Otherwise it retrieves it from the browser's app.env object. The app.env object is used for internal purposes only.

type

(key: string) => unknown