Skip to content

Commit

Permalink
Merge pull request #26 from hemantwasthere/dev
Browse files Browse the repository at this point in the history
Added mixpanel tracking, updated routes, tnc doc and referral system
  • Loading branch information
akiraonstarknet authored Aug 27, 2024
2 parents 73a34f9 + 08ac585 commit 90678c0
Show file tree
Hide file tree
Showing 44 changed files with 7,984 additions and 18,006 deletions.
4 changes: 3 additions & 1 deletion .env.sample
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
NEXT_PUBLIC_RPC_URL=
RPC_URL=
RPC_URL=

DATABASE_URL=
19 changes: 7 additions & 12 deletions .husky/_/h
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env sh
# shellcheck disable=SC1090
[ "$HUSKY" = "2" ] && set -x
n=$(basename "$0")
s=$(dirname "$(dirname "$0")")/$n
Expand All @@ -14,14 +13,10 @@ i="${XDG_CONFIG_HOME:-$HOME/.config}/husky/init.sh"

[ "${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"
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
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

0 comments on commit 90678c0

Please sign in to comment.