Skip to content
This repository has been archived by the owner on Apr 7, 2024. It is now read-only.

Commit

Permalink
feat: use new cloudfront image resize url (#152)
Browse files Browse the repository at this point in the history
* feat: use new cloudfront image resize url

* docs(changeset): use new cloudfront image resize url
  • Loading branch information
jackbuehner authored Dec 30, 2023
1 parent 50cba22 commit 2bf84f1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/nine-ads-add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@jackbuehner/cristata-api': patch
---

use new cloudfront image resize url
4 changes: 2 additions & 2 deletions apps/server/src/app/routes/root.route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import ColorHash from 'color-hash';
import { Router } from 'express';
import https from 'https';
import mime from 'mime';
import { TenantDB } from '../../mongodb/TenantDB';
import { IFile } from '../../mongodb/files';
import { IPhoto } from '../../mongodb/photos';
import { TenantDB } from '../../mongodb/TenantDB';
import { IUser } from '../../mongodb/users';
import { IDeserializedUser } from '../passport';

Expand Down Expand Up @@ -166,7 +166,7 @@ router.get('/photo/:tenant/:_id', async (req, res) => {
const height = transformations.find((tr) => tr.indexOf('h-') === 0)?.replace('h-', '');
const resizeFit = transformations.find((tr) => tr.indexOf('fit-') === 0)?.replace('fit-', '');

const cloudFrontLocation = 'https://d1m74hlt8nompf.cloudfront.net';
const cloudFrontLocation = 'https://dsm94u2p4guhh.cloudfront.net';

const imageParams = {
bucket: bucketName,
Expand Down

0 comments on commit 2bf84f1

Please sign in to comment.