diff --git a/plugins/hubspot/src/auth.ts b/plugins/hubspot/src/auth.ts index 334af46f..3c4749d5 100644 --- a/plugins/hubspot/src/auth.ts +++ b/plugins/hubspot/src/auth.ts @@ -21,7 +21,7 @@ export interface Authorize { const pluginTokensKey = "hubspotTokens" -export const isLocal = () => window.location.hostname.includes("localhost") +const isLocal = () => window.location.hostname.includes("localhost") export const AUTH_URI = isLocal() ? "https://localhost:8787" : "https://oauth.fetch.tools/hubspot-plugin" diff --git a/plugins/hubspot/src/router.tsx b/plugins/hubspot/src/router.tsx index 3f94caae..875bd646 100644 --- a/plugins/hubspot/src/router.tsx +++ b/plugins/hubspot/src/router.tsx @@ -12,7 +12,6 @@ import { LearnMoreTrackingPage } from "./pages/tracking/learn-more" import { MeetingsPage } from "./pages/Meetings" import { PluginPage } from "./components/PluginPage" import { PageErrorBoundaryFallback } from "./components/PageErrorBoundaryFallback" -import { isLocal } from "./auth" interface PluginRoute { path: string @@ -28,7 +27,7 @@ interface Match { const pluginRoutes: PluginRoute[] = [ { - path: isLocal() ? "/" : "/hubspot", + path: "/", component: AuthenticatePage, }, {