Skip to content

Commit

Permalink
Merge pull request #3 from themuuln/obfuscate
Browse files Browse the repository at this point in the history
package: nextjs-obfuscator package added
  • Loading branch information
themuuln authored Feb 28, 2023
2 parents e3e3d8c + 802b8f5 commit 529e257
Show file tree
Hide file tree
Showing 5 changed files with 1,768 additions and 31 deletions.
10 changes: 9 additions & 1 deletion app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ a {
}

*::-webkit-scrollbar-track:hover {
background-color: #102E44;
background-color: #0B1F2E;
}

*::-webkit-scrollbar-track:active {
Expand All @@ -146,4 +146,12 @@ a {

*::-webkit-scrollbar-thumb:active {
background-color: #F1903B;
}

@keyframes flip {

0%,
80% {
transform: rotateY(360deg)
}
}
2 changes: 1 addition & 1 deletion components/hero/ProgressBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const ProgressBar = () => {
return (
<>
<motion.div
className="origin-left progress-bar fixed top-0 left-0 right-0 h-[10px] select-none bg-brand_main-500"
className="progress-bar fixed top-0 left-0 right-0 h-[10px] origin-left select-none bg-brand_main-500"
style={{ scaleX }}
/>
</>
Expand Down
33 changes: 31 additions & 2 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,35 @@ const nextConfig = {
experimental: {
appDir: true,
},
}
};

module.exports = nextConfig
module.exports = nextConfig;

const NextJSObfuscatorPlugin = require("nextjs-obfuscator");

module.exports = {
webpack: (config, { dev }) => {
// Only obfuscate classnames in production builds
if (!dev) {
// Add the NextJSObfuscatorPlugin to the list of plugins
config.plugins.push(
new NextJSObfuscatorPlugin({
// Configure the plugin as desired
// See https://github.com/javascript-obfuscator/webpack-obfuscator for available options
rotateStringArray: true,
controlFlowFlattening: true,
controlFlowFlatteningThreshold: 0.75,
numbersToExpressions: true,
simplify: true,
shuffleStringArray: true,
splitStrings: true,
splitStringsChunkLength: 10,
stringArrayThreshold: 0.75,
unicodeEscapeSequence: true,
})
);
}

return config;
},
};
Loading

1 comment on commit 529e257

@vercel
Copy link

@vercel vercel bot commented on 529e257 Feb 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

themuuln – ./

themuuln.vercel.app
themuuln-git-main-themuuln.vercel.app
themuuln-themuuln.vercel.app

Please sign in to comment.