Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.edgespark.dev/llms.txt

Use this file to discover all available pages before exploring further.

vars reads plain runtime configuration values from the current environment. Use it for non-sensitive values such as URLs, client IDs, feature flags, and log levels.

vars.get(name)

Declare the key in server/src/defs/runtime.ts, then read it in your route code:
server/src/index.ts
import { vars } from "edgespark";
import { Hono } from "hono";

const app = new Hono().get("/api/public/config", (c) => {
  return c.json({
    apiBaseUrl: vars.get("PUBLIC_API_BASE_URL"),
  });
});

export default app;
vars.get(...) returns string | null.

Manage vars

edgespark var list
edgespark var set PUBLIC_API_BASE_URL=https://api.example.com
edgespark var delete PUBLIC_API_BASE_URL
Use platform limits for current var naming and quota constraints.

See also

Manage variables

Set, delete, and organize runtime vars in the repo-based workflow.

secret reference

Use secrets instead when the value is sensitive.
Last modified on April 7, 2026