From cf3cc8128b08e12c65105f46aa591051e4cea30b Mon Sep 17 00:00:00 2001 From: yasithranusha Date: Wed, 22 May 2024 02:31:35 +0530 Subject: [PATCH] refactor: APP route --- .husky/commit-msg | 32 +++++++++++++++---------------- .husky/pre-commit | 48 +++++++++++++++++++++++------------------------ next.config.mjs | 5 ----- 3 files changed, 40 insertions(+), 45 deletions(-) diff --git a/.husky/commit-msg b/.husky/commit-msg index 8453e14..2b3732e 100644 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1,23 +1,23 @@ -#!/usr/bin/env sh +# #!/usr/bin/env sh -PKG_MGRS="pnpm yarn npm" -NODE_GLOBALS="node bun $PKG_MGRS npx" +# PKG_MGRS="pnpm yarn npm" +# NODE_GLOBALS="node bun $PKG_MGRS npx" -NVM_DIR="$HOME/.nvm" +# NVM_DIR="$HOME/.nvm" -if [ -d "$NVM_DIR" ]; then - _load_nvm() { - [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" +# if [ -d "$NVM_DIR" ]; then +# _load_nvm() { +# [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" - node --version >/dev/null - npx --version >/dev/null - } +# node --version >/dev/null +# npx --version >/dev/null +# } - for cmd in $NODE_GLOBALS; do - eval "$cmd(){ unset -f $NODE_GLOBALS; _load_nvm; unset -f _load_nvm; $cmd \$@; }" - done +# for cmd in $NODE_GLOBALS; do +# eval "$cmd(){ unset -f $NODE_GLOBALS; _load_nvm; unset -f _load_nvm; $cmd \$@; }" +# done - unset -f "$NODE_GLOBALS" -fi +# unset -f "$NODE_GLOBALS" +# fi -npx --no-install commitlint --edit "$1" +# npx --no-install commitlint --edit "$1" diff --git a/.husky/pre-commit b/.husky/pre-commit index f415ef2..7b51d64 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,31 +1,31 @@ -#!/usr/bin/env sh +# #!/usr/bin/env sh -PKG_MGRS="pnpm yarn npm" -NODE_GLOBALS="node bun $PKG_MGRS npx" +# PKG_MGRS="pnpm yarn npm" +# NODE_GLOBALS="node bun $PKG_MGRS npx" -NVM_DIR="$HOME/.nvm" +# NVM_DIR="$HOME/.nvm" -if [ -d "$NVM_DIR" ]; then - _load_nvm() { - [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" +# if [ -d "$NVM_DIR" ]; then +# _load_nvm() { +# [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" - node --version >/dev/null - npx --version >/dev/null - } +# node --version >/dev/null +# npx --version >/dev/null +# } - for cmd in $NODE_GLOBALS; do - eval "$cmd(){ unset -f $NODE_GLOBALS; _load_nvm; unset -f _load_nvm; $cmd \$@; }" - done +# for cmd in $NODE_GLOBALS; do +# eval "$cmd(){ unset -f $NODE_GLOBALS; _load_nvm; unset -f _load_nvm; $cmd \$@; }" +# done - unset -f "$NODE_GLOBALS" -fi +# unset -f "$NODE_GLOBALS" +# fi -RUNNERS="prettier build" -for pm in $PKG_MGRS; do - if command -v "$pm" >/dev/null; then - for X in $RUNNERS; do - eval "$pm run $X" - done - break - fi -done +# RUNNERS="prettier build" +# for pm in $PKG_MGRS; do +# if command -v "$pm" >/dev/null; then +# for X in $RUNNERS; do +# eval "$pm run $X" +# done +# break +# fi +# done diff --git a/next.config.mjs b/next.config.mjs index 8e7a1c2..abd9585 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -7,11 +7,6 @@ const nextConfig = { destination: "/", permanent: false, }, - { - source: "/register", - destination: "/", - permanent: false, - }, ]; }, };