bottender
bottender copied to clipboard
unhandled promise rejection if session driver set "file" on a read-only system
Describe the bug
unhandled promise rejection if session driver set "file" on a read-only system such as free plan on ZEIT Now
Unlike local development, there are always restrictions on cloud deployment, especially for free accounts
To Reproduce
-
bottender.config.jsset'file'as session.driver -
$ now - See zeit.co the Runtime tab.
Expected behaviour
A clear and concise description of what you expected to happen.
expect errorMessage to like "You haven't permission to create files"
Screenshots

Additional context
- free plan on ZEIT Now
- now version 2
Hi @hilezi,
IMO, there is not much different between errorMessage: Error: EROFS: read-only file system, mkdir.... and You haven't permission to create files.
You could use cloud redis, cloud mongo, or other custom session store that works on distributed or serverless system.