1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-06 02:42:37 +01:00

Set default cdn endpoints so that local testing works

This commit is contained in:
Madeline 2022-12-21 15:37:16 +11:00
parent 0aead491dc
commit 92227cdf18
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";
}