From 5e73d90c9d21691d6e189ab087cbae0a5966ebc8 Mon Sep 17 00:00:00 2001 From: d-ivashchuk Date: Thu, 4 Apr 2024 14:52:37 +0200 Subject: [PATCH] forgot that I self host plausible --- src/components/providers/index.tsx | 7 ++++++- src/env.mjs | 3 +++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/components/providers/index.tsx b/src/components/providers/index.tsx index 2c9b048..237b4d4 100644 --- a/src/components/providers/index.tsx +++ b/src/components/providers/index.tsx @@ -47,7 +47,12 @@ const Providers = ({ children }: { children: React.ReactNode }) => { > - + {children} diff --git a/src/env.mjs b/src/env.mjs index 2c4f7fb..1989fd7 100644 --- a/src/env.mjs +++ b/src/env.mjs @@ -72,6 +72,7 @@ export const env = createEnv({ ? z.string() : z.string().optional(), NEXT_PUBLIC_DEPLOYMENT_URL: z.string(), + NEXT_PUBLIC_PLAUSIBLE_SELFHOSTED_URL: z.string().optional(), }, /** @@ -98,6 +99,8 @@ export const env = createEnv({ LEMON_SQUEEZY_WEBHOOK_SECRET: process.env.LEMON_SQUEEZY_WEBHOOK_SECRET, LEMON_SQUEEZY_WEBHOOK_URL: process.env.LEMON_SQUEEZY_WEBHOOK_URL, NEXT_PUBLIC_DEPLOYMENT_URL: process.env.NEXT_PUBLIC_DEPLOYMENT_URL, + NEXT_PUBLIC_PLAUSIBLE_SELFHOSTED_URL: + process.env.NEXT_PUBLIC_PLAUSIBLE_SELFHOSTED_URL, }, /** * Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation. This is especially