Closed ArthurCose closed 1 year ago
This is necessary on hosting platforms with read-only disks (the one the website is currently hosted on) and can help with scaling.
See the storage folder for details. storage/db.ts contains the interface needed and storage/disk.ts can be used as a reference.
storage
storage/db.ts
storage/disk.ts
If mongo environment variables exist the default export at the bottom of storage/db.ts should be set to a new instance of the mongo implementation.
This is necessary on hosting platforms with read-only disks (the one the website is currently hosted on) and can help with scaling.
See the
storage
folder for details.storage/db.ts
contains the interface needed andstorage/disk.ts
can be used as a reference.If mongo environment variables exist the default export at the bottom of
storage/db.ts
should be set to a new instance of the mongo implementation.