search

Home  >  Q&A  >  body text

javascript - Solution: nodejs environment variable NODE_NEV issues a warning when starting in production mode

There is no problem if you start the program in development mode, but switching to production mode will throw the following error:


Warning:connect.session() MemoryStore is not designed for a production environment, as it will leakmemory, and will not scale past a single process.server connect,the port:3030
巴扎黑巴扎黑2764 days ago933

reply all(1)I'll reply

  • 我想大声告诉你

    我想大声告诉你2017-07-03 11:43:40

    Warning about the risk of memory leaks. Do not store cached data such as sessions directly in the host's memory.

    reply
    0
  • Cancelreply