import type { S3Repo } from '@prisma/client'
// import Spaces from 'digitalocean-spaces'
import {
S3,
PutObjectCommand,
ObjectCannedACL,
type PutObjectCommandInput,
} from '@aws-sdk/client-s3'
import { getSignedUrl as s3GetSignedUrl } from '@aws-sdk/s3-request-presigner'
import AWS from 'aws-sdk'
import { readFileSync } from 'node:fs'
import { nodeWithDefaults } from '@/lib/default'
export const getSignedUrl = async (
...
import type { S3Repo } from '@prisma/client'
// import Spaces from 'digitalocean-spaces'
import {
S3,
PutObjectCommand,
ObjectCannedACL,
type PutObjectCommandInput,
} from '@aws-sdk/client-s3'
import { getSignedUrl as s3GetSignedUrl } from '@aws-sdk/s3-request-presigner'
import AWS from 'aws-sdk'
import { readFileSync } from 'node:fs'
import { nodeWithDefaults } from '@/lib/default'
export const getSignedUrl = async (
...