Skip to content

Function: applyLakebaseToEnv()

applyLakebaseToEnv(resolved): void

Write resolved values back to process.env so the lakebase plugin (which reads env directly) picks them up during its own setup(). Existing env values are preserved; only missing keys are filled in, which keeps explicit overrides authoritative.

This does NOT set PGUSER, which needs an await - see applyLakebaseEnv for the complete set a Postgres pool requires.

LakebaseConnection

void