Hello,
Is there a way to use Node ‘fs’ driver as stated in the nitro doc on Netlify ?
It works on my local environnement to cache api results with the following in nuxt.config.ts
nitro: {
storage: {
'db': {
driver: 'fs',
base: './.data/db',
}
}
},
But once pushed to Netlify for the Nuxt endpoints using caching I get
{
"url": "/api/layout/footer-1",
"statusCode": 500,
"statusMessage": "Internal Server Error",
"message": "ENOENT: no such file or directory, open '/opt/build/repo/.data/db/https/path/to/cache/file...",
"description": ""
}
Maybe there is a way to allow write access to /opt/build/repo/.data path ?
thanks,
Michael