Set default cdn endpoints so that local testing works

This commit is contained in:
Madeline
2022-12-21 15:37:16 +11:00
parent b96d851646
commit 30e65415e4
2 changed files with 4 additions and 1 deletions

View File

@@ -247,7 +247,7 @@ router.post(
Attachment.create({ ...file, proxy_url: file.url }),
);
} catch (error) {
return res.status(400).json(error);
return res.status(400).json({ message: error!.toString() })
}
}

View File

@@ -4,4 +4,7 @@ export class CdnConfiguration extends EndpointConfiguration {
resizeHeightMax: number = 1000;
resizeWidthMax: number = 1000;
imagorServerUrl: string | null = null;
endpointPublic: string | null = "http://localhost:3001";
endpointPrivate: string | null = "http://localhost:3001";
}