fix: update chart routing path, add edge logs redirect

This commit is contained in:
TzeYiing authored and Ziinc committed 2022-12-02 12:31:43 +08:00
1 parent 7778639ce7
commit 3b7b7ea32b
2 files changed
+7 -2

No files matched your search

@@ -51,9 +51,9 @@ const ProjectUsage: FC<Props> = ({}) => {
if (timestampDigits < 16) {
// pad unix timestamp with additional 0 and then forward
const paddedTimestamp = String(timestamp) + '0'.repeat(16 - timestampDigits)
router.push(`/project/${ref}/database/api-logs?te=${paddedTimestamp}`)
router.push(`/project/${ref}/logs/edge-logs?te=${paddedTimestamp}`)
} else {
router.push(`/project/${ref}/database/api-logs?te=${timestamp}`)
router.push(`/project/${ref}/logs/edge-logs?te=${timestamp}`)
}
}
+5
View File
@@ -75,6 +75,11 @@ const nextConfig = {
destination: '/project/:ref/settings/billing/subscription',
permanent: true,
},
{
source: '/project/:ref/database/api-logs',
destination: '/project/:ref/logs/edge-logs',
permanent: true,
},
{
source: '/project/:ref/database/postgres-logs',
destination: '/project/:ref/logs/postgres-logs',