Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

chore: exclude team provider on marketing pages

Marc Seitz0b59af9fba1f
diff --git a/lib/constants.ts b/lib/constants.ts
index 53cd0c4e..147d2c26 100644
--- a/lib/constants.ts
+++ b/lib/constants.ts
@@ -51,3 +51,22 @@ export const BLOCKED_PATHNAMES = [
"/_all_dbs",
"/wp-json",
];
+
+// list of paths that should be excluded from team checks
+export const EXCLUDED_PATHS = [
+ "/",
+ "/register",
+ "/privacy",
+ "/oss-friends",
+ "/pricing",
+ "/docsend-alternatives",
+ "/launch-week",
+ "/open-source-investors",
+ "/investors",
+ "/ai",
+ "/share-notion-page",
+ "/alternatives",
+ "/investors",
+ "/blog",
+ "/view",
+];
diff --git a/pages/_app.tsx b/pages/_app.tsx
index e9040145..8cfc4d58 100644
--- a/pages/_app.tsx
+++ b/pages/_app.tsx
@@ -11,12 +11,14 @@ import { ThemeProvider } from "@/components/theme-provider";
import { TeamProvider } from "@/context/team-context";
import { TooltipProvider } from "@/components/ui/tooltip";
import { PostHogCustomProvider } from "@/components/providers/posthog-provider";
+import { EXCLUDED_PATHS } from "@/lib/constants";
const inter = Inter({ subsets: ["latin"] });
export default function App({
Component,
pageProps: { session, ...pageProps },
+ router,
}: AppProps<{ session: Session }>) {
return (
<>
@@ -70,9 +72,13 @@ export default function App({
<main className={inter.className}>
<Toaster closeButton richColors />
<TooltipProvider delayDuration={100}>
- <TeamProvider>
+ {EXCLUDED_PATHS.includes(router.pathname) ? (
<Component {...pageProps} />
- </TeamProvider>
+ ) : (
+ <TeamProvider>
+ <Component {...pageProps} />
+ </TeamProvider>
+ )}
</TooltipProvider>
</main>
</PlausibleProvider>
diff --git a/pages/v1.tsx b/pages/v1.tsx
deleted file mode 100644
index 52c10449..00000000
--- a/pages/v1.tsx
+++ /dev/null
@@ -1,65 +0,0 @@
-import Footer from "@/components/web/footer";
-import Navbar from "@/components/web/navbar";
-import Decks from "@/components/web/decks";
-import Header from "@/components/web/header";
-import Section from "@/components/web/section";
-import Section2 from "@/components/web/section2";
-import Testimonials from "@/components/web/testimonials";
-import Logos from "@/components/web/logos";
-import Head from "next/head";
-import Section3 from "@/components/web/section3";
-
-export default function Home() {
- return (
- <>
- <Head>
- <meta
- name="description"
- content="Papermark is an open-source document infrastructure for sharing and collaboration. Free alternative to Docsend with custom domain. Manage secure document sharing with real-time analytics."
- />
- <meta
- property="og:title"
- content="Papermark | The Open Source DocSend Alternative"
- />
- <meta
- property="og:description"
- content="Papermark is an open-source document infrastructure for sharing and collaboration. Manage secure document sharing with real-time analytics. It is a free alternative to DocSend."
- />
- <meta
- property="og:image"
- content="https://www.papermark.io/_static/meta-image.png"
- />
- <meta property="og:url" content="https://www.papermark.io" />
- <meta name="twitter:card" content="summary_large_image" />
- </Head>
-
- <Navbar />
-
- <div>
- <div className="relative isolate overflow-hidden bg-white ">
- <div
- className="absolute left-[calc(50%-4rem)] top-10 -z-10 transform-gpu blur-3xl sm:left-[calc(50%-18rem)] lg:left-48 lg:top-[calc(50%-30rem)] xl:left-[calc(50%-24rem)]"
- aria-hidden="true"
- >
- <div
- className="aspect-[1108/632] w-[69.25rem] bg-gradient-to-r from-[#ff80b5] to-[#00FFD0] opacity-20"
- style={{
- clipPath:
- "polygon(73.6% 51.7%, 91.7% 11.8%, 100% 46.4%, 97.4% 82.2%, 92.5% 84.9%, 75.7% 64%, 55.3% 47.5%, 46.5% 49.4%, 45% 62.9%, 50.3% 87.2%, 21.3% 64.1%, 0.1% 100%, 5.4% 51.1%, 21.4% 63.9%, 58.9% 0.2%, 73.6% 51.7%)",
- }}
- />
- </div>
-
- <Header />
- <Logos />
- <Decks />
- <Section />
- <Section3 />
- <Testimonials />
- <Section2 />
- </div>
- </div>
- <Footer />
- </>
- );
-}