I have a very simple api and I’ve just realised that the key value store won’t work on netlify, is there any alternative that’s easy to implement using lambda functions for instance or faunaDB?
Im a bit of a newbie so Im hoping that there is something not to complex
const db = require('quick.db')
export default async (req, res) => {
const { method, body } = req
if (method === 'POST') {
console.log('userInfo', db.get('userInfo'))
res.statusCode = 200
res.end()
} else if (method === 'GET') {
db.set('userInfo', req.cookies.tagrid)
console.log('fish', db.get('userInfo'))
res.statusCode = 200
res.end()
}
}