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 dfbf1c7
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions site/next.config.js → site/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
/* eslint-disable */

// @ts-check
const withBundleAnalyzer = require("@next/bundle-analyzer")({

import nextBundleAnalyzer from "@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");

/**
* @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 dfbf1c7

Please sign in to comment.