mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-30 09:59:41 +05:00
fix: next plugins use
This commit is contained in:
parent
7df11a467a
commit
141cb9a1ce
3 changed files with 21 additions and 18 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue