1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-19 14:45:31 -04:00

remove next-compose-plugins from config

This commit is contained in:
2022-07-15 11:14:51 -04:00
parent d35e40a18d
commit de604f2f04
5 changed files with 150 additions and 275 deletions

View File

@@ -2,20 +2,9 @@
/* eslint-disable @typescript-eslint/no-var-requires */
const path = require("path");
const { PHASE_DEVELOPMENT_SERVER } = require("next/constants");
const withPlugins = require("next-compose-plugins");
const config = require("./lib/config");
module.exports = (phase, { defaultConfig }) => {
const nextPlugins = [
require("next-transpile-modules")([
// fixes some mystery issues in the noVNC library
"@novnc/novnc",
]),
require("@next/bundle-analyzer")({
enabled: process.env.ANALYZE === "true",
}),
];
module.exports = (phase) => {
/**
* @type {import("next").NextConfig}
*/
@@ -153,5 +142,5 @@ module.exports = (phase, { defaultConfig }) => {
],
};
return withPlugins(nextPlugins, nextConfig)(phase, { defaultConfig });
return nextConfig;
};