If my next js backend that I deploy as a worker reads env vars from process.env, are they loaded at

If my next js backend that I deploy as a worker reads env vars from process.env, are they loaded at compile time or run time?
In other words, do I need to set them in github actions or cloudflare?
Was this page helpful?