Skip to content

Commit

Permalink
update next config: use mjs instead of js
Browse files Browse the repository at this point in the history
  • Loading branch information
SebiVPS committed Dec 19, 2024
1 parent 057b8c2 commit 80faa9e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions site/next.config.js → site/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
/* eslint-disable */
import nextBundleAnalyzer from "@next/bundle-analyzer";

// @ts-check
const withBundleAnalyzer = require("@next/bundle-analyzer")({
import cometConfig from "./src/comet-config.json" with { type: "json" };

const withBundleAnalyzer = nextBundleAnalyzer({
enabled: process.env.ANALYZE === "true",
});

const cometConfig = require("./src/comet-config.json");
// @ts-check

/**
* @type {import('next').NextConfig}
Expand Down Expand Up @@ -56,4 +57,4 @@ const nextConfig = {
cacheMaxMemorySize: process.env.REDIS_ENABLED === "true" ? 0 : undefined, // disable default in-memory caching
};

module.exports = withBundleAnalyzer(nextConfig);
export default withBundleAnalyzer(nextConfig);

0 comments on commit 80faa9e

Please sign in to comment.