Skip to content

Commit

Permalink
Move newer pages to correct directory. Handle blog docIds
Browse files Browse the repository at this point in the history
  • Loading branch information
amozoss committed Jul 8, 2024
1 parent 7e59270 commit 5a973a8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
title: >-
How do I know the exchange rate for my payout?
docId: 6xwcyBYTMDNojI58mxXSd
metadata:
description: How to check the exchange rate for your payout
docId: 6xwcyBYTMDNojI58mxXSd
redirects:
- >-
/node/resources/faq/how-do-i-know-the-exchange-rate-for-my-payout
Expand All @@ -12,4 +12,4 @@ redirects:

If you want to know the amount of USD a particular storage node payment transaction was considered denominated in, please check out our cost basis tool. You’ll need to enter your payment transaction:

[https://costbasis.storj.tools/](https://costbasis.storj.tools/)
[https://costbasis.storj.tools/](https://costbasis.storj.tools/)
2 changes: 1 addition & 1 deletion app/(docs)/node/payouts/page.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Storage Node Fees will not be paid for the following Storage Node usage:
The following table includes the current Storj Satellite payout rates.

| **Payment Category** | **Rates as of Dec 1st, 2023** |
| --------------------- | ----------------------------- |
| -------------------------- | ----------------------------- |
| Storage (per TB per Month) | $1.50 |
| Egress (per TB) | $2.00 |
| Audit/Repair (per TB) | $2.00 |
Expand Down
4 changes: 4 additions & 0 deletions src/markdoc/convertDocId.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
dcsBottomNav,
learnBottomNav,
supportBottomNav,
blogBottomNav,
} from '@/markdoc/navigation.mjs'

function getFrontmatter(filePath) {
Expand Down Expand Up @@ -51,6 +52,9 @@ export function convertDocId(href) {
if (!entry) {
entry = learnBottomNav.find((o) => o.docId === docId)
}
if (!entry) {
entry = blogBottomNav.find((o) => o.docId === docId)
}

if (!entry) {
throw new Error(`Could not find docId: ${docId}`)
Expand Down

0 comments on commit 5a973a8

Please sign in to comment.