Skip to content

Commit

Permalink
Fixing the schemes page not showing on server
Browse files Browse the repository at this point in the history
  • Loading branch information
yevkim committed Jan 12, 2025
1 parent 6a8ad69 commit f3b5ddb
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
20 changes: 20 additions & 0 deletions frontend/firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,20 @@
"source": "/_next/**",
"destination": "/_next/**"
},
{
"source": "/schemes/**",
"destination": "/index.html"
},
{
"source": "**",
"destination": "/index.html"
}
],
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=31536000, immutable"
}
]
},
{
Expand All @@ -38,10 +48,20 @@
"source": "/_next/**",
"destination": "/_next/**"
},
{
"source": "/schemes/**",
"destination": "/index.html"
},
{
"source": "**",
"destination": "/index.html"
}
],
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=31536000, immutable"
}
]
}
]
Expand Down
2 changes: 2 additions & 0 deletions frontend/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
output: "standalone",
trailingSlash: false,
reactStrictMode: true,
env: {
APP_ENV: process.env.APP_ENV || "development",
},
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/schemes/schemes-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default function SchemesList({ schemes }: SchemesListProps) {
key={scheme.schemeId}
href={`/schemes/${scheme.schemeId}`}
className="w-full"
// target="_blank"
target="_blank"
>
<Card shadow="sm" className="w-full" isHoverable>
<CardHeader className="flex gap-3 font-semibold">
Expand Down

0 comments on commit f3b5ddb

Please sign in to comment.