File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
apps/web/app/api/media/presigned Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -8,11 +8,6 @@ import { auth } from "@/auth";
88import { error } from "@/services/logger" ;
99import { MediaLit } from "medialit" ;
1010
11- const medialit = new MediaLit ( {
12- apiKey : process . env . MEDIALIT_APIKEY ,
13- endpoint : process . env . MEDIALIT_SERVER ,
14- } ) ;
15-
1611export async function POST ( req : NextRequest ) {
1712 const domain = await DomainModel . findOne < Domain > ( {
1813 name : req . headers . get ( "domain" ) ,
@@ -45,6 +40,11 @@ export async function POST(req: NextRequest) {
4540 ) ;
4641 }
4742
43+ const medialit = new MediaLit ( {
44+ apiKey : process . env . MEDIALIT_APIKEY ,
45+ endpoint : process . env . MEDIALIT_SERVER ,
46+ } ) ;
47+
4848 try {
4949 let signature = await medialit . getSignature ( {
5050 group : domain . name ,
You can’t perform that action at this time.
0 commit comments