feat: prepare supporter self-hosting

This commit is contained in:
Carl-Gerhard Lindesvärd
2025-10-22 09:36:53 +02:00
parent f958230a66
commit 9790ba8937
19 changed files with 2647 additions and 115 deletions

View File

@@ -12,21 +12,12 @@ import { ThemeProvider } from './theme-provider';
export function Providers({ children }: { children: React.ReactNode }) {
const storeRef = useRef<AppStore>(undefined);
if (!storeRef.current) {
// Create the store instance the first time this renders
storeRef.current = makeStore();
}
return (
<NuqsAdapter>
<ThemeProvider>
{/* {import.meta.env.VITE_OP_CLIENT_ID && (
<OpenPanelComponent
clientId={import.meta.env.VITE_OP_CLIENT_ID}
trackScreenViews
trackOutgoingLinks
trackAttributes
/>
)} */}
<ReduxProvider store={storeRef.current}>
<TooltipProvider delayDuration={200}>
{children}