From f08f6ca0a9d337efff280d4d1669a41b5d9c31c2 Mon Sep 17 00:00:00 2001 From: piotrruss Date: Thu, 2 Sep 2021 22:28:11 +0200 Subject: finish translations, force maximize --- lib/withSession.js | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 lib/withSession.js (limited to 'lib/withSession.js') diff --git a/lib/withSession.js b/lib/withSession.js deleted file mode 100644 index 0361db3..0000000 --- a/lib/withSession.js +++ /dev/null @@ -1,14 +0,0 @@ -// this file is a wrapper with defaults to be used in both API routes and `getServerSideProps` functions -import {withIronSession} from 'next-iron-session' - -export default function withSession(handler) { - return withIronSession(handler, { - password: process.env.MYAPPS_SECRET_COOKIE_PASSWORD, - cookieName: 'myapps_session', - cookieOptions: { - // the next line allows to use the session in non-https environments like - // Next.js dev mode (http://localhost:3000) - secure: process.env.NODE_ENV === 'production' ? true : false, - }, - }) -} -- cgit v1.2.3