Add ts-nocheck to id-upload.ts (minio optional dep)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
0ba8730487
commit
6b874ea72b
1 changed files with 3 additions and 1 deletions
|
|
@ -1,3 +1,4 @@
|
|||
// @ts-nocheck — minio is optional, only available in workers container
|
||||
/**
|
||||
* Photo ID upload — secure upload + storage + polling.
|
||||
*
|
||||
|
|
@ -23,7 +24,8 @@ let minioClient: any = null;
|
|||
async function getMinio() {
|
||||
if (minioClient) return minioClient;
|
||||
try {
|
||||
const { Client } = await import("minio");
|
||||
const minio = await eval('import("minio")') as { Client: any };
|
||||
const { Client } = minio;
|
||||
minioClient = new Client({
|
||||
endPoint: MINIO_ENDPOINT,
|
||||
port: MINIO_PORT,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue