Switch to Ditto relay, don't include intentional error in App.tsx lol

This commit is contained in:
Alex Gleason 2025-05-27 23:48:03 +02:00
parent d14652559e
commit 2c5d38013f
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7

View File

@ -8,11 +8,10 @@ import { TooltipProvider } from "@/components/ui/tooltip";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import { NostrLoginProvider } from '@nostrify/react/login'; import { NostrLoginProvider } from '@nostrify/react/login';
import AppRouter from './AppRouter'; import AppRouter from './AppRouter';
import { useLocation } from 'react-router-dom';
// DO NOT MODIFY THIS RELAY LIST UNLESS EXPLICITLY REQUESTED // DO NOT MODIFY THIS RELAY LIST UNLESS EXPLICITLY REQUESTED
const defaultRelays = [ const defaultRelays = [
'wss://relay.nostr.band', 'wss://ditto.pub/relay',
// DO NOT ADD ANY RELAY WITHOUT FIRST USING A TOOL TO VERIFY IT IS ONLINE AND FUNCTIONAL // DO NOT ADD ANY RELAY WITHOUT FIRST USING A TOOL TO VERIFY IT IS ONLINE AND FUNCTIONAL
// IF YOU CANNOT VERIFY A RELAY IS ONLINE AND FUNCTIONAL, DO NOT ADD IT HERE // IF YOU CANNOT VERIFY A RELAY IS ONLINE AND FUNCTIONAL, DO NOT ADD IT HERE
]; ];
@ -28,8 +27,6 @@ const queryClient = new QueryClient({
}); });
export function App() { export function App() {
const location = useLocation();
return ( return (
<NostrLoginProvider storageKey='nostr:login'> <NostrLoginProvider storageKey='nostr:login'>
<NostrProvider relays={defaultRelays}> <NostrProvider relays={defaultRelays}>