Skip to content
This repository has been archived by the owner on Apr 30, 2021. It is now read-only.

Commit

Permalink
Remove express-session
Browse files Browse the repository at this point in the history
  • Loading branch information
mjackson committed Feb 15, 2021
1 parent 43bb57e commit 0b6deda
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"@remix-run/react": "^0.12.0",
"compression": "^1.7.4",
"express": "^4.17.1",
"express-session": "^1.17.1",
"morgan": "^1.10.0",
"react": "^17.0.1",
"react-dom": "^17.0.1",
Expand Down
6 changes: 1 addition & 5 deletions server.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const express = require("express");
const compression = require("compression");
const morgan = require("morgan");
const session = require("express-session");
const { createRequestHandler } = require("@remix-run/express");

let app = express();
Expand All @@ -21,13 +20,10 @@ if (process.env.NODE_ENV === "development") {
app.all(
"*",
createRequestHandler({
// Uncomment the following line if you don't want sessions. This will
// disable the warning message when no session middleware is present.
//enableSessions: false,
getLoadContext() {
// Whatever you return here will be passed as `context` to your loaders
// and actions.
},
}
})
);

Expand Down

0 comments on commit 0b6deda

Please sign in to comment.