explain production runtime?
Unanswered
Spectacled bear posted this in #help-forum
Spectacled bearOP
I have some singletons (module declared object) where in a prod build, it will create two of. Some code seems to call instance 1 and some calls instance 2.
At first I thought it was edge vs non edge, so i tried node runtime in canary... but same thing
This is not a huge deal, but I can't use the globalThis to get around it because the libs I'm using don't work if I do.
So I am wondering what is going on, and is it possible to make true singletons in one server instance (running next start local)?
At first I thought it was edge vs non edge, so i tried node runtime in canary... but same thing
This is not a huge deal, but I can't use the globalThis to get around it because the libs I'm using don't work if I do.
So I am wondering what is going on, and is it possible to make true singletons in one server instance (running next start local)?