refactor(package.json, next.config.ts, Hero.tsx): add bundle analyzer support and improve code formatting

This commit is contained in:
2025-02-13 19:04:32 +01:00
parent 704924208f
commit b4616234cf
4 changed files with 256 additions and 49 deletions

View File

@@ -1,4 +1,7 @@
import type { NextConfig } from "next";
import dotenv from "dotenv";
dotenv.config();
const nextConfig: NextConfig = {
env: {
@@ -6,4 +9,8 @@ const nextConfig: NextConfig = {
},
};
export default nextConfig;
const withBundleAnalyzer = require("@next/bundle-analyzer")({
enabled: process.env.ANALYZE === "true",
});
module.exports = withBundleAnalyzer(nextConfig);