misc: noop storage adapter
Assists in testing and for my dumbass who somehow is incapable of getting an S3 server to run locally.
This commit is contained in:
parent
7f0d3f4b7e
commit
f7465483a5
1 changed files with 9 additions and 0 deletions
9
plice/src/lib/server/storage/noop.ts
Normal file
9
plice/src/lib/server/storage/noop.ts
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
import type { ObjectStorage } from '.';
|
||||||
|
|
||||||
|
class ObjectStorageNoop implements ObjectStorage {
|
||||||
|
putObject = async (_key: string, _obj: Uint8Array) => {
|
||||||
|
return null;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
export { ObjectStorageNoop };
|
Loading…
Reference in a new issue