Skip to content

Commit 60dc538

Browse files
Merge pull request #24 from The-Infinitys/feat/add-games-and-refactor
feat: Add Games section and refactor codebase
2 parents 0c8c978 + 2faa059 commit 60dc538

File tree

9 files changed

+12819
-6058
lines changed

9 files changed

+12819
-6058
lines changed

next.config.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
11
import type { NextConfig } from "next";
22
import createNextIntlPlugin from "next-intl/plugin";
3+
import bundleAnalyzer from "@next/bundle-analyzer";
34

45
const withNextIntl = createNextIntlPlugin();
56

7+
const withBundleAnalyzer = bundleAnalyzer({
8+
enabled: process.env.ANALYZE === "true",
9+
});
10+
611
/** @type {import('next').NextConfig} */
712
const nextConfig: NextConfig = {
813
reactStrictMode: true,
914
output: "export",
15+
// TODO: Investigate if Next.js Image Optimization can be enabled.
16+
// This is currently disabled due to issues with deploying to a static export environment or specific hosting platform.
17+
// Enabling it could improve image loading performance if the compatibility issues are resolved.
1018
images: { unoptimized: true },
1119
trailingSlash: true,
1220
};
1321

14-
export default withNextIntl(nextConfig);
22+
export default withBundleAnalyzer(withNextIntl(nextConfig));

0 commit comments

Comments
 (0)