Skip to content

Commit

Permalink
feat: add webp to the list of acceptable image formats
Browse files Browse the repository at this point in the history
  • Loading branch information
micahg committed Nov 29, 2024
1 parent e15c4dc commit ba98868
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/api/src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ export const SCENE_CONTENT_PATH = "/scene/:id/content";
export const SCENE_VIEWPORT_PATH = "/scene/:id/viewport";

export const VALID_LAYERS = ["overlay", "detail", "player"];

export const VALID_CONTENT_TYPES = ["image/png", "image/jpeg"];
export const CONTENT_TYPE_EXTS = ["png", "jpg"];
export const VALID_CONTENT_TYPES = ["image/png", "image/jpeg", "image/webp"];
export const CONTENT_TYPE_EXTS = ["png", "jpg", "webp"];
export const DEST_FOLDER = "public";

export const OBJECT_ID_LEN = 24;
Expand Down

0 comments on commit ba98868

Please sign in to comment.