Skip to content
This repository was archived by the owner on Oct 7, 2025. It is now read-only.

Commit c37ac06

Browse files
committed
fix(web): images not loading in production due to s3 storage bucket mimetype misconfiguration
1 parent da29162 commit c37ac06

File tree

4 files changed

+5
-18
lines changed

4 files changed

+5
-18
lines changed

libs/cms/configs/server.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,6 @@ import { s3Storage } from '@payloadcms/storage-s3'
2727
import sharp from "sharp";
2828

2929
export const baseConfig = {
30-
auth: {
31-
cookies: {
32-
payloadToken: {
33-
domain: ".cuhacking.ca",
34-
path: "/",
35-
secure: true,
36-
httpOnly: true,
37-
sameSite: "None",
38-
},
39-
},
40-
},
4130
defaultDepth: 3,
4231
globals: [
4332
Hackathon2025,
@@ -134,6 +123,7 @@ formOverrides: {
134123
endpoint: process.env.S3_ENDPOINT || "",
135124
},
136125
}),
126+
],
137127
db: postgresAdapter({
138128
pool: {
139129
connectionString: process.env.DATABASE_URI,

libs/website/ui/sponsorship/sponsor-presenter/sponsor-item.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import type { Sponsor } from '../types/sponsorship'
22
import { GlassmorphicCard } from '@cuhacking/shared/ui/glassmorphic-card'
33
import { cn } from '@cuhacking/shared/utils/cn'
4-
import SVG from 'react-inlinesvg'
54

65
export interface SponsorPresenterProps {
76
sponsor: Sponsor
@@ -20,9 +19,8 @@ export function SponsorItem({ sponsor, className }: SponsorPresenterProps) {
2019
rel="noopener noreferrer"
2120
aria-label={`Visit ${sponsor.name}'s website`}
2221
>
23-
<SVG
22+
<img
2423
src={sponsor.logo}
25-
title={`${sponsor.name} logo`}
2624
className={cn(className || 'h-32 min-w-24')}
2725
/>
2826
</a>

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@
244244
"prettier-plugin-slidev": "^1.0.5",
245245
"react-email": "3.0.6",
246246
"react-icons": "^5.4.0",
247-
"react-inlinesvg": "^4.2.0",
248247
"rehype-katex": "^7.0.1",
249248
"rehype-mermaid": "^2.1.0",
250249
"remark-math": "^6.0.0",

pnpm-lock.yaml

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)