fix: next plugins use

This commit is contained in:
Kentai Radiquum 2025-04-04 01:05:37 +05:00
parent 7df11a467a
commit 141cb9a1ce
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
3 changed files with 21 additions and 18 deletions

View file

@ -75,22 +75,8 @@ const NextConfig = {
},
};
const config = () => {
const plugins = [withPlausibleProxy, withFlowbiteReact];
return (
plugins.reduce((acc, next) => {
console.log(`INIT: ${next.name}`);
if (next.name === "withPlausibleProxy") {
return next(acc, {
customDomain: "https://analytics.wah.su",
});
}
const config = withPlausibleProxy({
customDomain: "https://analytics.wah.su",
})(withFlowbiteReact(NextConfig));
return next(acc);
}),
{ ...NextConfig }
);
};
console.log(config());
module.exports = config();
module.exports = config;