Skip to main content
Module

x/udibo_react_app/mod.tsx>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.
Latest
variable getEnv
import { getEnv } from "https://deno.land/x/udibo_react_app@0.19.0/mod.tsx";

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