while trying to deploy an App with heroku that has API calls and connects to a database...
error log: "connect.session() MemoryStore is not designed for a production environment, as it will leak memory, and will not scale past a single process."
I'm using sessions like so...
app.use(session({
secret: "I am nerdier than most",
saveUninitialized: true,
resave: true,
cookie: { maxAge: 60000 }
}));
How do I go about fixing the error?
Locally, I can run the app just fine. I'm connecting to a postgres db through massive.
via theman0123
No comments:
Post a Comment