Open
Description
The value of NODE_ENV
seems to become undefined after reattachment:
Development:
Production:
Therefore the test in the provided example seems as though it would fail client side: https://github.com/donejs/done-ssr/blob/master/docs/env.md
I've also noticed a window-production
mapping in steal config to remap the path of a module file on the browser client does not work. However, a duplicate mapping for window-development
does work.
Why do both env.NODE_ENV
and window-production
seem to have issues on the client side?
Aren't we supposed to be able to check env.NODE_ENV
client side and use window-production
?
If so, could this be a problem with Heroku? Am I misunderstanding this feature or is this a bug?