Skip to content

Commit

Permalink
feat: add base APRs for haiko
Browse files Browse the repository at this point in the history
  • Loading branch information
EjembiEmmanuel committed Jun 13, 2024
1 parent 04ecc7a commit c6beef2
Show file tree
Hide file tree
Showing 5 changed files with 13,204 additions and 934 deletions.
79 changes: 42 additions & 37 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,43 +1,48 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
// output: 'export',
compiler: {
removeConsole: {
exclude: ['error'],
},
},
async rewrites() {
return [
{
source: '/strk-incentives/:path*',
destination: 'https://kx58j6x5me.execute-api.us-east-1.amazonaws.com/starknet/:path*',
},
{
source: '/zklend/:path*',
destination: 'https://app.zklend.com/:path*'
},
{
source: '/jediswap/:path*',
destination: 'https://api.jediswap.xyz/:path*'
},
{
source: '/ekubo/:path*',
destination: 'https://mainnet-api.ekubo.org/:path*'
},
{
source: '/nostra/:path*',
destination: 'https://us-east-2.aws.data.mongodb-api.com/:path*'
}
]
// output: 'export',
compiler: {
removeConsole: {
exclude: ['error'],
},
// async rewrites() {
// return [
// {
// source: '/rpc-api',
// destination: 'https://rpc.nethermind.io/mainnet-juno?apikey=t1HPjhplOyEQpxqVMhpwLGuwmOlbXN0XivWUiPAxIBs0kHVK',
// },
// ]
// },
},
async rewrites() {
return [
{
source: '/strk-incentives/:path*',
destination:
'https://kx58j6x5me.execute-api.us-east-1.amazonaws.com/starknet/:path*',
},
{
source: '/zklend/:path*',
destination: 'https://app.zklend.com/:path*',
},
{
source: '/jediswap/:path*',
destination: 'https://api.jediswap.xyz/:path*',
},
{
source: '/ekubo/:path*',
destination: 'https://mainnet-api.ekubo.org/:path*',
},
{
source: '/haiko/:path*',
destination: 'https://app.haiko.xyz/api/v1/:path*',
},
{
source: '/nostra/:path*',
destination: 'https://us-east-2.aws.data.mongodb-api.com/:path*',
},
];
},
// async rewrites() {
// return [
// {
// source: '/rpc-api',
// destination: 'https://rpc.nethermind.io/mainnet-juno?apikey=t1HPjhplOyEQpxqVMhpwLGuwmOlbXN0XivWUiPAxIBs0kHVK',
// },
// ]
// },
};

export default nextConfig;
Loading

0 comments on commit c6beef2

Please sign in to comment.