Skip to content

Commit

Permalink
fix: image load to s3 directly
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementNumericite committed Nov 14, 2024
1 parent d6238f2 commit b618a34
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 44 deletions.
6 changes: 2 additions & 4 deletions webapp/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
## [0.63.1](https://github.com/SocialGouv/carte-jeune-engage/compare/v0.63.0...v0.63.1) (2024-11-13)


### Bug Fixes

* login-widget erase previous widgetToken from cookies ([62e5369](https://github.com/SocialGouv/carte-jeune-engage/commit/62e5369db8cf95ca63ca0c3370a576294a5c3a7c))
- login-widget erase previous widgetToken from cookies ([62e5369](https://github.com/SocialGouv/carte-jeune-engage/commit/62e5369db8cf95ca63ca0c3370a576294a5c3a7c))

# [0.63.0](https://github.com/SocialGouv/carte-jeune-engage/compare/v0.62.4...v0.63.0) (2024-11-13)


### Features

* modal articles details ([a452f86](https://github.com/SocialGouv/carte-jeune-engage/commit/a452f86ac8bc1f9c305b9024172b0122579c8524))
- modal articles details ([a452f86](https://github.com/SocialGouv/carte-jeune-engage/commit/a452f86ac8bc1f9c305b9024172b0122579c8524))

## [0.62.4](https://github.com/SocialGouv/carte-jeune-engage/compare/v0.62.3...v0.62.4) (2024-11-13)

Expand Down
38 changes: 0 additions & 38 deletions webapp/src/pages/api/image.ts

This file was deleted.

2 changes: 1 addition & 1 deletion webapp/src/payload/payload.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default buildConfig({
adapter: adapter,
disableLocalStorage: true,
disablePayloadAccessControl: true,
generateFileURL: (file) => `/api/image?filename=${file.filename}`,
prefix: "public",
},
},
}),
Expand Down
1 change: 0 additions & 1 deletion webapp/src/server/api/routers/offer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import fs from "fs/promises";
import path from "path";
import os from "os";
import _ from "lodash";
import image from "~/pages/api/image";

export interface OfferIncluded extends Offer {
image: Media;
Expand Down

0 comments on commit b618a34

Please sign in to comment.