From 7108943dc2bc44b99df6a08f903c044ab16f0aaf Mon Sep 17 00:00:00 2001 From: skidoodle Date: Sun, 1 May 2022 23:07:42 +0200 Subject: [PATCH] commit --- pages/api/s3.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pages/api/s3.tsx b/pages/api/s3.tsx index a89b8f0..e056949 100644 --- a/pages/api/s3.tsx +++ b/pages/api/s3.tsx @@ -1,9 +1,10 @@ -import aws from 'aws-sdk'; +import aws, { ConfigurationOptions } from 'aws-sdk'; +import { ServiceConfigurationOptions } from 'aws-sdk/lib/service'; import { NextApiRequest, NextApiResponse } from 'next'; export default async function handler(req: NextApiRequest, res: NextApiResponse) { - aws.config.update({ + aws.config.s3 = ({ accessKeyId: process.env.ACCESS_KEY, secretAccessKey: process.env.SECRET_KEY, region: process.env.REGION,