mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
fix: update chart routing path, add edge logs redirect
This commit is contained in:
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}`)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in new issue
Block a user