Hos.Mercury

Results 12 comments of Hos.Mercury

Have to be mentioned in the docs.

like @mobile @tab @desktop

https://www.npmjs.com/package/session-file-store this is what I need ``` import nextSession from 'next-session'; import fileStore from 'session-file-store'; import { promisifyStore } from 'next-session/lib/compat'; export const getSession = nextSession({ store: promisifyStore(fileStore) }); ```...

Ok thanx , so how to use barebone Postgres as a session datastore

It does not work as session is `undefined`

``` `Server Error TypeError: Cannot read property 'Store' of undefined This error happened while generating the page. Any console logs will be displayed in the terminal window. Source (api)/lib/get-session.js (4:34)...

``` `import nextSession from 'next-session'; import pgPool from '../db/config'; import { promisifyStore } from 'next-session/lib/compat'; import { expressSession } from 'next-session/lib/compat'; const pgSession = require('connect-pg-simple')(expressSession); const connectStore = new pgSession({...