Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
feruzm committed Dec 10, 2024
1 parent 38a7fb5 commit 970f5fb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
6 changes: 1 addition & 5 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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;
4 changes: 0 additions & 4 deletions src/app/providers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
>
<ClientProviders>{children}</ClientProviders>
</PlausibleProvider>
Expand Down
3 changes: 1 addition & 2 deletions src/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ const CONFIG = {
visionFeatures: {
analytics: {
plausible: {
domain: "https://ecency.com",
customDomain: "https://pl.ecency.com"
domain: "https://ecency.com"
}
},
perks: {
Expand Down

0 comments on commit 970f5fb

Please sign in to comment.