Skip to content

Commit c907914

Browse files
Fix hasObjectStoreClient to also check the default protocol provider
1 parent 434f8bb commit c907914

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/webapp/app/v3/objectStore.server.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,10 @@ function getObjectStoreClient(protocol?: string): AwsClient | undefined {
145145
}
146146

147147
export function hasObjectStoreClient(): boolean {
148-
return getObjectStoreClient() !== undefined;
148+
return getObjectStoreClient() !== undefined || getObjectStoreClient(env.OBJECT_STORE_DEFAULT_PROTOCOL) !== undefined;
149149
}
150150

151+
151152
export async function uploadPacketToObjectStore(
152153
filename: string,
153154
data: ReadableStream | string,

0 commit comments

Comments
 (0)