edgedb-js icon indicating copy to clipboard operation
edgedb-js copied to clipboard

Better error message when env vars aren't set in CI

Open jaclarke opened this issue 1 year ago • 0 comments

If the env vars needed for the client to connect aren't set in CI/whatever deploy platform, then edgedb-js currently shows the Found edgedb.toml but project is not initialized. Run 'edgedb project init'. error message, which is misleading.

Instead if we can detect we're in CI, then the error message should have instructions for configuring the env vars (EDGEDB_INSTANCE+EDGEDB_SECRET_KEY for cloud, or probably EDGEDB_DSN for self hosted).

jaclarke avatar Jul 01 '24 15:07 jaclarke