Skip to content

Environment variables

Endform sets ENDFORM=true for Node processes it starts as part of your test execution flow.

You can use this to detect Endform runtime context in your own code:

const isEndform = process.env.ENDFORM === "true";

Endform transfers selected environment variables to remote runners. For details, see environmentVariables in endform.jsonc.

At a high level:

  • E2E_* variables are transferred automatically.
  • Variables referenced from tests via process.env are transferred automatically.
  • You can explicitly include additional variables with environmentVariables.

You can set ENDFORM_EXTRA_HTTP_HEADERS to override the Playwright extraHttpHeaders option. See extraHttpHeaders in endform.jsonc.