Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added mixpanel tracking, updated routes, referral system #99

Merged
merged 54 commits into from
Aug 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
abb2fb0
lint fix
VenkatTeja Jul 30, 2024
68bcac2
chore: added mixpanel tracking and updated strategy query parameters …
hemantwasthere Aug 2, 2024
ae73c3a
format and linting checks
hemantwasthere Aug 2, 2024
90df6a9
fix: build issue
hemantwasthere Aug 2, 2024
f1a9570
fix: lint and formats
hemantwasthere Aug 2, 2024
0857f15
fix: build issue
hemantwasthere Aug 5, 2024
aed6c6c
chore: added revalidation in stats api route
hemantwasthere Aug 5, 2024
81e4f05
fix: deleted api folder
hemantwasthere Aug 5, 2024
93b3a91
Merge pull request #21 from strkfarm/dev
akiraonstarknet Aug 6, 2024
e11bc52
chore: added api folder
hemantwasthere Aug 6, 2024
d5effe3
chore: updated mixpanel token id
hemantwasthere Aug 6, 2024
8d3bb7f
chore: removed .vscode folder
hemantwasthere Aug 6, 2024
ebedf90
Merge branch 'dev' of https://github.com/hemantwasthere/starkfarm-cli…
hemantwasthere Aug 6, 2024
625eaa9
chore: revamped the connect wallet tracking code
hemantwasthere Aug 6, 2024
2738a56
fix: removed unwanted test button from navbar
hemantwasthere Aug 6, 2024
2b57118
fix: updated wallet connect mixpanel tracking code
hemantwasthere Aug 6, 2024
de14e16
converted wallet connect tracking props
hemantwasthere Aug 15, 2024
5e5f698
converted wallet connect props
hemantwasthere Aug 15, 2024
3eb6c0e
updated mixpanel token
hemantwasthere Aug 16, 2024
61079b7
chore: added share modal on deposit txn submission
hemantwasthere Aug 17, 2024
ae51106
fix: added share modal check to be shown on deposit txn submission only
hemantwasthere Aug 17, 2024
0ab87bb
chore: updated twitter share modal content
hemantwasthere Aug 18, 2024
39c72a7
updated terms and condition points
hemantwasthere Aug 18, 2024
2421f62
Merge pull request #24 from strkfarm/dev
akiraonstarknet Aug 18, 2024
f96629a
chore: added api's for storing tnc signed data
hemantwasthere Aug 18, 2024
4290814
fix: removed async notation from client component
hemantwasthere Aug 19, 2024
0ebea51
fix: build issue
hemantwasthere Aug 19, 2024
eb05b44
chore: updated deposit share modal
hemantwasthere Aug 20, 2024
639007f
fix: tracking changes
hemantwasthere Aug 20, 2024
3e52cbd
Merge branch 'dev' of https://github.com/hemantwasthere/starkfarm-cli…
hemantwasthere Aug 20, 2024
c846e6a
fix: merge conflicts
hemantwasthere Aug 20, 2024
1180491
chore: updated tnc modal logic
hemantwasthere Aug 21, 2024
1fafe63
fix: response from useSignTypedData hook
hemantwasthere Aug 23, 2024
e33de98
fix: tnc modal close on sign
hemantwasthere Aug 23, 2024
6a0d37f
chore: generating and storing referral code
hemantwasthere Aug 24, 2024
c84c219
chore: handled all the edge cases for refer system
hemantwasthere Aug 24, 2024
07c4896
chore: added validations and standardization in apis
hemantwasthere Aug 25, 2024
bebd447
chore: removed tnc
hemantwasthere Aug 25, 2024
08ac585
chore: update db schema
hemantwasthere Aug 25, 2024
73a34f9
Merge pull request #25 from strkfarm/dev
akiraonstarknet Aug 26, 2024
90678c0
Merge pull request #26 from hemantwasthere/dev
akiraonstarknet Aug 27, 2024
924376a
merged
akiraonstarknet Aug 27, 2024
05276aa
merged
akiraonstarknet Aug 27, 2024
fb6aaa1
merged
akiraonstarknet Aug 27, 2024
f9b17d0
add createUser route validations and improvements
akiraonstarknet Aug 27, 2024
6ad1cee
fix referral issues
akiraonstarknet Aug 27, 2024
864d367
build fix
akiraonstarknet Aug 28, 2024
2d40bc6
Merge pull request #27 from akiraonstarknet/referral
akiraonstarknet Aug 28, 2024
ee7507f
referral validation fix
akiraonstarknet Aug 28, 2024
9274704
Merge pull request #28 from akiraonstarknet/referral
akiraonstarknet Aug 28, 2024
266f76f
improve referral UX
akiraonstarknet Aug 28, 2024
9895b51
convert 14 days compounding to 7
akiraonstarknet Aug 28, 2024
d70cd93
add ref document
akiraonstarknet Aug 28, 2024
24c668f
Merge pull request #29 from akiraonstarknet/referral
akiraonstarknet Aug 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
NEXT_PUBLIC_RPC_URL=
RPC_URL=
NEXT_PUBLIC_RPC_URL=https://starknet-mainnet.public.blastapi.io/
RPC_URL=https://starknet-mainnet.public.blastapi.io/

DATABASE_URL=
1 change: 0 additions & 1 deletion .husky/_/.gitignore

This file was deleted.

2 changes: 0 additions & 2 deletions .husky/_/applypatch-msg

This file was deleted.

2 changes: 0 additions & 2 deletions .husky/_/commit-msg

This file was deleted.

49 changes: 22 additions & 27 deletions .husky/_/h
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,27 +1,22 @@
#!/usr/bin/env sh
# shellcheck disable=SC1090
[ "$HUSKY" = "2" ] && set -x
n=$(basename "$0")
s=$(dirname "$(dirname "$0")")/$n

[ ! -f "$s" ] && exit 0

if [ -f "$HOME/.huskyrc" ]; then
echo "husky - '~/.huskyrc' is DEPRECATED, please move your code to ~/.config/husky/init.sh"
fi
i="${XDG_CONFIG_HOME:-$HOME/.config}/husky/init.sh"
[ -f "$i" ] && . "$i"

[ "${HUSKY-}" = "0" ] && exit 0

c=0
h() {
[ $c = 0 ] && return
[ $c != 0 ] && echo "husky - $n script failed (code $c)"
[ $c = 127 ] && echo "husky - command not found in PATH=$PATH"
exit 1
}
trap 'c=$?; h' EXIT
set -e
PATH=node_modules/.bin:$PATH
. "$s"
#!/usr/bin/env sh
[ "$HUSKY" = "2" ] && set -x
n=$(basename "$0")
s=$(dirname "$(dirname "$0")")/$n

[ ! -f "$s" ] && exit 0

if [ -f "$HOME/.huskyrc" ]; then
echo "husky - '~/.huskyrc' is DEPRECATED, please move your code to ~/.config/husky/init.sh"
fi
i="${XDG_CONFIG_HOME:-$HOME/.config}/husky/init.sh"
[ -f "$i" ] && . "$i"

[ "${HUSKY-}" = "0" ] && exit 0

export PATH="node_modules/.bin:$PATH"
sh -e "$s" "$@"
c=$?

[ $c != 0 ] && echo "husky - $n script failed (code $c)"
[ $c = 127 ] && echo "husky - command not found in PATH=$PATH"
exit $c
2 changes: 0 additions & 2 deletions .husky/_/post-applypatch

This file was deleted.

2 changes: 0 additions & 2 deletions .husky/_/post-checkout

This file was deleted.

2 changes: 0 additions & 2 deletions .husky/_/post-commit

This file was deleted.

2 changes: 0 additions & 2 deletions .husky/_/post-merge

This file was deleted.

2 changes: 0 additions & 2 deletions .husky/_/post-rewrite

This file was deleted.

2 changes: 0 additions & 2 deletions .husky/_/pre-applypatch

This file was deleted.

2 changes: 0 additions & 2 deletions .husky/_/pre-auto-gc

This file was deleted.

2 changes: 0 additions & 2 deletions .husky/_/pre-commit

This file was deleted.

2 changes: 0 additions & 2 deletions .husky/_/pre-push

This file was deleted.

2 changes: 0 additions & 2 deletions .husky/_/pre-rebase

This file was deleted.

2 changes: 0 additions & 2 deletions .husky/_/prepare-commit-msg

This file was deleted.

2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
yarn run lint:fix && yarn run format:fix
yarn run lint:fix && yarn run format:fix
89 changes: 61 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,15 @@ Clone the repository
git clone https://github.com/strkfarm/starkfarm-client.git
```

Configure the environment. Ensure env file has necessary settings.
```
cp .env.sample .env.local
```

Install dependencies and run the development build

```bash
yarn

yarn run dev
```

Expand Down Expand Up @@ -74,33 +78,62 @@ To connect with us regarding any queries about contributing to the repo, feel fr
## Contributors ✨
Thanks goes to these wonderful people.

<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
<table>
<tbody>
<tr>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/akiraonstarknet"><img src="https://avatars.githubusercontent.com/u/156126180?v=4?s=100" width="100px;" alt="Akira "/><br /><sub><b>Akira </b></sub></a><br /><a href="#ideas-akiraonstarknet" title="Ideas, Planning, & Feedback">🤔</a> <a href="#code-akiraonstarknet" title="Code">💻</a> <a href="#infra-akiraonstarknet" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://hemant.lol"><img src="https://avatars.githubusercontent.com/u/85151171?v=4?s=100" width="100px;" alt="Hemant"/><br /><sub><b>Hemant</b></sub></a><br /><a href="#infra-hemantwasthere" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/raizo07"><img src="https://avatars.githubusercontent.com/u/81079370?v=4?s=100" width="100px;" alt="Wolf"/><br /><sub><b>Wolf</b></sub></a><br /><a href="#infra-raizo07" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/jedstroke"><img src="https://avatars.githubusercontent.com/u/86930056?v=4?s=100" width="100px;" alt="Jed"/><br /><sub><b>Jed</b></sub></a><br /><a href="#code-jedstroke" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/EjembiEmmanuel"><img src="https://avatars.githubusercontent.com/u/83036156?v=4?s=100" width="100px;" alt="Emmaunuel Ejembi"/><br /><sub><b>Emmaunuel Ejembi</b></sub></a><br /><a href="#code-EjembiEmmanuel" title="Code">💻</a> <a href="#doc-EjembiEmmanuel" title="Documentation">📖</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/kateberryd"><img src="https://avatars.githubusercontent.com/u/35270183?v=4?s=100" width="100px;" alt="Catherine Jonathan"/><br /><sub><b>Catherine Jonathan</b></sub></a><br /><a href="#code-kateberryd" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/NeelkanthTandel"><img src="https://avatars.githubusercontent.com/u/68822066?v=4?s=100" width="100px;" alt="Neelkanth Tandel"/><br /><sub><b>Neelkanth Tandel</b></sub></a><br /><a href="#review-NeelkanthTandel" title="Reviewed Pull Requests">👀</a></td>
</tr>
<tr>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Ugo-X"><img src="https://avatars.githubusercontent.com/u/133219527?v=4?s=100" width="100px;" alt="Ugonna Paul Dike"/><br /><sub><b>Ugonna Paul Dike</b></sub></a><br /><a href="#code-Ugo-X" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://fishonsnote.medium.com/"><img src="https://avatars.githubusercontent.com/u/43862685?v=4?s=100" width="100px;" alt="Fishon Amos"/><br /><sub><b>Fishon Amos</b></sub></a><br /><a href="#code-fishonamos" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/ooochoche"><img src="https://avatars.githubusercontent.com/u/101812348?v=4?s=100" width="100px;" alt="Benedict Ejembi"/><br /><sub><b>Benedict Ejembi</b></sub></a><br /><a href="#infra-ooochoche" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Jemiiah"><img src="https://avatars.githubusercontent.com/u/160767568?v=4?s=100" width="100px;" alt="Jemiiah"/><br /><sub><b>Jemiiah</b></sub></a><br /><a href="#code-Jemiiah" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Dprof-in-tech"><img src="https://avatars.githubusercontent.com/u/116242877?v=4?s=100" width="100px;" alt="Isaac Onyemaechi Ugwu"/><br /><sub><b>Isaac Onyemaechi Ugwu</b></sub></a><br /><a href="#code-Dprof-in-tech" title="Code">💻</a></td>
</tr>
</tbody>
</table>

<!-- markdownlint-restore -->
<!-- prettier-ignore-end -->

<<<<<<< HEAD
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
<table>
<tbody>
<tr>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/akiraonstarknet"><img src="https://avatars.githubusercontent.com/u/156126180?v=4?s=100" width="100px;" alt="Akira "/><br /><sub><b>Akira </b></sub></a><br /><a href="#ideas-akiraonstarknet" title="Ideas, Planning, & Feedback">🤔</a> <a href="#code-akiraonstarknet" title="Code">💻</a> <a href="#infra-akiraonstarknet" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://hemant.lol"><img src="https://avatars.githubusercontent.com/u/85151171?v=4?s=100" width="100px;" alt="Hemant"/><br /><sub><b>Hemant</b></sub></a><br /><a href="#infra-hemantwasthere" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/raizo07"><img src="https://avatars.githubusercontent.com/u/81079370?v=4?s=100" width="100px;" alt="Wolf"/><br /><sub><b>Wolf</b></sub></a><br /><a href="#infra-raizo07" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/jedstroke"><img src="https://avatars.githubusercontent.com/u/86930056?v=4?s=100" width="100px;" alt="Jed"/><br /><sub><b>Jed</b></sub></a><br /><a href="#code-jedstroke" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/EjembiEmmanuel"><img src="https://avatars.githubusercontent.com/u/83036156?v=4?s=100" width="100px;" alt="Emmaunuel Ejembi"/><br /><sub><b>Emmaunuel Ejembi</b></sub></a><br /><a href="#code-EjembiEmmanuel" title="Code">💻</a> <a href="#doc-EjembiEmmanuel" title="Documentation">📖</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/kateberryd"><img src="https://avatars.githubusercontent.com/u/35270183?v=4?s=100" width="100px;" alt="Catherine Jonathan"/><br /><sub><b>Catherine Jonathan</b></sub></a><br /><a href="#code-kateberryd" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/NeelkanthTandel"><img src="https://avatars.githubusercontent.com/u/68822066?v=4?s=100" width="100px;" alt="Neelkanth Tandel"/><br /><sub><b>Neelkanth Tandel</b></sub></a><br /><a href="#review-NeelkanthTandel" title="Reviewed Pull Requests">👀</a></td>
</tr>
<tr>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Ugo-X"><img src="https://avatars.githubusercontent.com/u/133219527?v=4?s=100" width="100px;" alt="Ugonna Paul Dike"/><br /><sub><b>Ugonna Paul Dike</b></sub></a><br /><a href="#code-Ugo-X" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://fishonsnote.medium.com/"><img src="https://avatars.githubusercontent.com/u/43862685?v=4?s=100" width="100px;" alt="Fishon Amos"/><br /><sub><b>Fishon Amos</b></sub></a><br /><a href="#code-fishonamos" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/ooochoche"><img src="https://avatars.githubusercontent.com/u/101812348?v=4?s=100" width="100px;" alt="Benedict Ejembi"/><br /><sub><b>Benedict Ejembi</b></sub></a><br /><a href="#infra-ooochoche" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Jemiiah"><img src="https://avatars.githubusercontent.com/u/160767568?v=4?s=100" width="100px;" alt="Jemiiah"/><br /><sub><b>Jemiiah</b></sub></a><br /><a href="#code-Jemiiah" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Dprof-in-tech"><img src="https://avatars.githubusercontent.com/u/116242877?v=4?s=100" width="100px;" alt="Isaac Onyemaechi Ugwu"/><br /><sub><b>Isaac Onyemaechi Ugwu</b></sub></a><br /><a href="#code-Dprof-in-tech" title="Code">💻</a></td>
</tr>
</tbody>
</table>

<!-- markdownlint-restore -->
<!-- prettier-ignore-end -->

=======
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
<table>
<tbody>
<tr>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/akiraonstarknet"><img src="https://avatars.githubusercontent.com/u/156126180?v=4?s=100" width="100px;" alt="Akira "/><br /><sub><b>Akira </b></sub></a><br /><a href="#ideas-akiraonstarknet" title="Ideas, Planning, & Feedback">🤔</a> <a href="#code-akiraonstarknet" title="Code">💻</a> <a href="#infra-akiraonstarknet" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://hemant.lol"><img src="https://avatars.githubusercontent.com/u/85151171?v=4?s=100" width="100px;" alt="Hemant"/><br /><sub><b>Hemant</b></sub></a><br /><a href="#infra-hemantwasthere" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/raizo07"><img src="https://avatars.githubusercontent.com/u/81079370?v=4?s=100" width="100px;" alt="Wolf"/><br /><sub><b>Wolf</b></sub></a><br /><a href="#infra-raizo07" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/jedstroke"><img src="https://avatars.githubusercontent.com/u/86930056?v=4?s=100" width="100px;" alt="Jed"/><br /><sub><b>Jed</b></sub></a><br /><a href="#code-jedstroke" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/EjembiEmmanuel"><img src="https://avatars.githubusercontent.com/u/83036156?v=4?s=100" width="100px;" alt="Emmaunuel Ejembi"/><br /><sub><b>Emmaunuel Ejembi</b></sub></a><br /><a href="#code-EjembiEmmanuel" title="Code">💻</a> <a href="#doc-EjembiEmmanuel" title="Documentation">📖</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/kateberryd"><img src="https://avatars.githubusercontent.com/u/35270183?v=4?s=100" width="100px;" alt="Catherine Jonathan"/><br /><sub><b>Catherine Jonathan</b></sub></a><br /><a href="#code-kateberryd" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/NeelkanthTandel"><img src="https://avatars.githubusercontent.com/u/68822066?v=4?s=100" width="100px;" alt="Neelkanth Tandel"/><br /><sub><b>Neelkanth Tandel</b></sub></a><br /><a href="#review-NeelkanthTandel" title="Reviewed Pull Requests">👀</a></td>
</tr>
<tr>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Ugo-X"><img src="https://avatars.githubusercontent.com/u/133219527?v=4?s=100" width="100px;" alt="Ugonna Paul Dike"/><br /><sub><b>Ugonna Paul Dike</b></sub></a><br /><a href="#code-Ugo-X" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://fishonsnote.medium.com/"><img src="https://avatars.githubusercontent.com/u/43862685?v=4?s=100" width="100px;" alt="Fishon Amos"/><br /><sub><b>Fishon Amos</b></sub></a><br /><a href="#code-fishonamos" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/ooochoche"><img src="https://avatars.githubusercontent.com/u/101812348?v=4?s=100" width="100px;" alt="Benedict Ejembi"/><br /><sub><b>Benedict Ejembi</b></sub></a><br /><a href="#infra-ooochoche" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Jemiiah"><img src="https://avatars.githubusercontent.com/u/160767568?v=4?s=100" width="100px;" alt="Jemiiah"/><br /><sub><b>Jemiiah</b></sub></a><br /><a href="#code-Jemiiah" title="Code">💻</a></td>
</tr>
</tbody>
</table>

<!-- markdownlint-restore -->
<!-- prettier-ignore-end -->

>>>>>>> 2619149 (add pool click event)
<!-- ALL-CONTRIBUTORS-LIST:END -->

[![All Contributors](https://img.shields.io/github/all-contributors/akiraonstarknet/starkfarm-client?color=ee8449&style=flat-square)](#contributors)
26 changes: 13 additions & 13 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
// output: 'export',
compiler: {
removeConsole: {
exclude: ['error'],
},
},
compiler: {
// removeConsole: {
// exclude: ['error'],
// },
},
async rewrites() {
return [
{
Expand Down Expand Up @@ -47,25 +47,25 @@ const nextConfig = {
return [
{
source: '/usdc',
destination: '/strategy?id=usdc_sensei',
permanent: true
destination: '/strategy/usdc_sensei',
permanent: true,
},
{
source: '/strk',
destination: '/strategy?id=strk_sensei',
permanent: true
destination: '/strategy/strk_sensei',
permanent: true,
},
{
source: '/eth',
destination: '/strategy?id=eth_sensei',
permanent: true
destination: '/strategy/eth_sensei',
permanent: true,
},
]
];
},
webpack(config, options) {
if (options.isServer) config.devtool = 'source-map';
return config;
},
};

export default nextConfig;
export default nextConfig;
Loading
Loading