Skip to content

Commit

Permalink
fix(next.config.js): #2073
Browse files Browse the repository at this point in the history
  • Loading branch information
darwin.apolinario committed Oct 25, 2023
1 parent 484d77f commit 532346b
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 39 deletions.
27 changes: 0 additions & 27 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,6 @@
. "$(dirname -- "$0")/_/husky.sh"


npm run check-format ||
(
echo '
🤢🤮🤢🤮 ##################### PRETTIER ################## 🤢🤮🤢🤮
❌❌❌❌❌❌❌ Prettier Check Failed. ❌❌❌❌❌❌❌
🤢🤮🤢🤮 ##################### PRETTIER ################## 🤢🤮🤢🤮
';
false;
)

echo ' '
echo '⌛⌛⌛Loading.......😅😅😅'
echo '⌛⌛⌛Loading.......😅😅😅'
echo '⌛⌛⌛Loading.......😅😅😅'
echo ' '

npm run check-lint ||
(
echo '
😤🏀👋😤 ############### ESLINT ################# 😤🏀👋😤
❌❌❌❌❌❌❌ ESLint Check Failed. ❌❌❌❌❌❌❌
😤🏀👋😤 ############### ESLINT ################# 😤🏀👋😤
'
false;
)


echo ' '
Expand Down
35 changes: 35 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,41 @@



npm run check-format ||
(
echo '
🤢🤮🤢🤮 ##################### PRETTIER ################## 🤢🤮🤢🤮
❌❌❌❌❌❌❌ Prettier Check Failed. ❌❌❌❌❌❌❌
🤢🤮🤢🤮 ##################### PRETTIER ################## 🤢🤮🤢🤮
';
false;
)

echo ' '
echo '⌛⌛⌛Loading.......😅😅😅'
echo '⌛⌛⌛Loading.......😅😅😅'
echo '⌛⌛⌛Loading.......😅😅😅'
echo ' '

npm run check-lint ||
(
echo '
😤🏀👋😤 ############### ESLINT ################# 😤🏀👋😤
❌❌❌❌❌❌❌ ESLint Check Failed. ❌❌❌❌❌❌❌
😤🏀👋😤 ############### ESLINT ################# 😤🏀👋😤
'
false;
)


echo ' '
echo '⌛⌛⌛Loading.......😅😅😅'
echo '⌛⌛⌛Loading.......😅😅😅'
echo '⌛⌛⌛Loading.......😅😅😅'
echo ' '


echo ' '
echo ' '
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ describe('test for built in marketing pages in app', () => {
'/why-zesty/',
'/marketplace/installed/',
'/marketplace/register/',
'/contact/',
];

urls.forEach((url) => {
Expand Down
12 changes: 0 additions & 12 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,4 @@ module.exports = {
],
},
swcMinify: true,

webpack: (config, { dev, isServer }) => {
if (!dev && !isServer) {
Object.assign(config.resolve.alias, {
'react/jsx-runtime.js': 'preact/compat/jsx-runtime',
react: 'preact/compat',
'react-dom/test-utils': 'preact/test-utils',
'react-dom': 'preact/compat',
});
}
return config;
},
};

0 comments on commit 532346b

Please sign in to comment.