ci: add bundle analyzer

This commit is contained in:
Riccardo
2024-07-17 13:44:54 +02:00
parent 796482b455
commit 503a28dfa5
4 changed files with 160 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
/* eslint-disable @typescript-eslint/no-var-requires */
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true'
});
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
@@ -14,4 +19,4 @@ const nextConfig = {
}
};
module.exports = nextConfig;
module.exports = withBundleAnalyzer(nextConfig);