diff --git a/next.config.js b/next.config.js index fbeebea91..a149ac936 100644 --- a/next.config.js +++ b/next.config.js @@ -43,10 +43,6 @@ const config = { // Warn: Rewrites applies in order async rewrites() { return [ - { - source: '/proxy/api/event', - destination: 'https://pl.ecency.com/api/event' - }, { source: "/communities", destination: "/discover/communities" @@ -154,5 +150,5 @@ const withSentry = withSentryConfig(config, { }); /** @type {import('next').NextConfig} */ -const prod = withPlausibleProxy()(withPWA(withSentry)); +const prod = withPlausibleProxy({customDomain: 'https://pl.ecency.com', selfHosted: true})(withPWA(withSentry)); module.exports = process.env.NODE_ENV === "production" ? prod : withSentry; diff --git a/src/app/providers.tsx b/src/app/providers.tsx index e75ad71f0..fc31e8b5c 100644 --- a/src/app/providers.tsx +++ b/src/app/providers.tsx @@ -9,10 +9,6 @@ export default function Providers({ children }: PropsWithChildren) { domain={EcencyConfigManager.getConfigValue( (config) => config.visionFeatures.analytics.plausible.domain )} - customDomain={EcencyConfigManager.getConfigValue( - (config) => config.visionFeatures.analytics.plausible.customDomain - )} - selfHosted={true} > {children} diff --git a/src/config/config.ts b/src/config/config.ts index 3cd55527a..da7265512 100644 --- a/src/config/config.ts +++ b/src/config/config.ts @@ -29,8 +29,7 @@ const CONFIG = { visionFeatures: { analytics: { plausible: { - domain: "https://ecency.com", - customDomain: "https://pl.ecency.com" + domain: "https://ecency.com" } }, perks: {