Skip to content

Commit

Permalink
fix: logo not rendering in prod
Browse files Browse the repository at this point in the history
  • Loading branch information
longwind48 committed Dec 29, 2024
1 parent 310baad commit 2ffa5b9
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 4 deletions.
28 changes: 24 additions & 4 deletions frontend/firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,18 @@
"**/node_modules/**"
],
"frameworksBackend": {
"region": "asia-east1"
}
"region": "asia-southeast1"
},
"rewrites": [
{
"source": "/_next/**",
"destination": "/_next/**"
},
{
"source": "**",
"destination": "/index.html"
}
]
},
{
"target": "prod",
Expand All @@ -21,8 +31,18 @@
"**/node_modules/**"
],
"frameworksBackend": {
"region": "asia-east1"
}
"region": "asia-southeast1"
},
"rewrites": [
{
"source": "/_next/**",
"destination": "/_next/**"
},
{
"source": "**",
"destination": "/index.html"
}
]
}
]
}
3 changes: 3 additions & 0 deletions frontend/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ const nextConfig = {
env: {
APP_ENV: process.env.APP_ENV || 'development',
},
images: {
domains: ['schemes.sg'],
},
// You can add environment-specific configurations here if needed
// For example:
// publicRuntimeConfig: {
Expand Down
1 change: 1 addition & 0 deletions frontend/src/components/main-header/main-header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export default function MainHeader() {
alt="Schemes SG logo"
width={120}
height={30}
unoptimized
priority
/>
</a>
Expand Down

0 comments on commit 2ffa5b9

Please sign in to comment.