1. EasyHost
  2. Errors
  3. Environment variable is undefined

Environment variable is undefined

.env files are never uploaded, so the app only sees variables set on EasyHost, and only after a new build.

Last updated November 9, 2026

The error

process.env.DATABASE_URL is undefined

Why it happens

.env files are never uploaded, so the app only sees variables set on EasyHost, and only after a new build.

How to fix it

Import your variables, then redeploy.

ezhst env import .env
ezhst redeploy

Still stuck

Read the build log and runtime logs, or browse all errors.

Start for free

Install the skill, choose Global or Local, then tell your agent to deploy. No credit card, no config files.

npx ezhst skill install