nitro icon indicating copy to clipboard operation
nitro copied to clipboard

Provider `NITRO_CLUSTER_ID` and `NITRO_CLUSTER_PRIMARY`

Open pi0 opened this issue 1 year ago • 3 comments

Related to https://github.com/nuxt/nuxt/issues/20882 (and https://github.com/unjs/nitro/issues/1281)

In a cluster environment, we might want to run a plugin or logic only in first instance. For this, we need to check if the worker is primary (first one).

pi0 avatar Jun 05 '23 09:06 pi0