refactor(package.json, next.config.ts, Hero.tsx): add bundle analyzer support and improve code formatting
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user