Skip to content

Commit cf44705

Browse files
authored
Merge pull request #2054 from cprussin/add-redirect
feat(staking): add redirect from /test to legacy staking app /test
2 parents 713f77f + 14c5cba commit cf44705

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

apps/staking/next.config.js

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,19 @@ export default {
5353
},
5454
],
5555

56-
async rewrites() {
57-
return [
58-
{
59-
source: "/api/publishers-ranking",
60-
destination:
61-
"https://web-api.pyth.network/publishers_ranking?cluster=pythnet",
62-
},
63-
];
64-
},
56+
rewrites: () => [
57+
{
58+
source: "/api/publishers-ranking",
59+
destination:
60+
"https://web-api.pyth.network/publishers_ranking?cluster=pythnet",
61+
},
62+
],
63+
64+
redirects: () => [
65+
{
66+
source: "/test",
67+
destination: "https://staking-legacy.pyth.network/test",
68+
permanent: false,
69+
},
70+
],
6571
};

0 commit comments

Comments
 (0)