mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-04-19 19:01:19 +00:00
Move from read only relays to default relays for prod
This commit is contained in:
parent
4cc94de801
commit
74492eee12
@ -1,14 +1,14 @@
|
||||
const appConfig = {
|
||||
defaultRelayUrls: [
|
||||
// "wss://nos.lol/",
|
||||
// "wss://relay.damus.io/",
|
||||
// "wss://relay.snort.social/",
|
||||
// "wss://relay.nostr.band/",
|
||||
// "wss://relay.mutinywallet.com/",
|
||||
// "wss://relay.primal.net/",
|
||||
// "wss://nostr21.com/",
|
||||
// "wss://nostrue.com/",
|
||||
// "wss://purplerelay.com/",
|
||||
"wss://nos.lol/",
|
||||
"wss://relay.damus.io/",
|
||||
"wss://relay.snort.social/",
|
||||
"wss://relay.nostr.band/",
|
||||
"wss://relay.mutinywallet.com/",
|
||||
"wss://relay.primal.net/",
|
||||
"wss://nostr21.com/",
|
||||
"wss://nostrue.com/",
|
||||
"wss://purplerelay.com/",
|
||||
"wss://relay.devs.tools/"
|
||||
],
|
||||
// ganon "468f729dd409053dac5e7470622c3996aad88db6ed1de9165cb1921b5ab4fd5e",
|
||||
|
@ -6,13 +6,9 @@ import appConfig from "@/config/appConfig";
|
||||
|
||||
const NDKContext = createContext(null);
|
||||
|
||||
const readOnlyRelays = ["wss://nostr21.com/", "wss://nostr.wine/", "wss://yestr.me/", "wss://lightningrelay.com/", "wss://nostr.land/", "wss://us.nostr.land", "wss://relay.keychat.io"];
|
||||
|
||||
export const NDKProvider = ({ children }) => {
|
||||
const [ndk, setNdk] = useState(null);
|
||||
// todo: remove this after testing phase
|
||||
// const [userRelays, setUserRelays] = useLocalStorage("userRelays", appConfig.defaultRelayUrls);
|
||||
const [userRelays, setUserRelays] = useState([...readOnlyRelays, "wss://relay.devs.tools"]);
|
||||
const [userRelays, setUserRelays] = useLocalStorage("userRelays", appConfig.defaultRelayUrls);
|
||||
|
||||
const createNDKInstance = (relays) => {
|
||||
const allRelays = [...new Set([...appConfig.defaultRelayUrls, ...relays])];
|
||||
|
@ -12,9 +12,8 @@ import { updateUser, getUserByPubkey, createUser, getUserByEmail } from "@/db/mo
|
||||
import { createRole } from "@/db/models/roleModels";
|
||||
import appConfig from "@/config/appConfig";
|
||||
|
||||
// todo update EMAIL_FROM to be a plebdevs email
|
||||
const ndk = new NDK({
|
||||
explicitRelayUrls: [...appConfig.defaultRelayUrls, "wss://relay.primal.net/", "wss://relay.damus.io/"]
|
||||
explicitRelayUrls: [...appConfig.defaultRelayUrls]
|
||||
});
|
||||
|
||||
const authorize = async (pubkey) => {
|
||||
|
@ -5,7 +5,6 @@ import VideosCarousel from '@/components/content/carousels/VideosCarousel';
|
||||
import DocumentsCarousel from '@/components/content/carousels/DocumentsCarousel';
|
||||
import HeroBanner from '@/components/banner/HeroBanner';
|
||||
|
||||
// todo: make paid course video and document lessons not appear in carousels
|
||||
export default function Home() {
|
||||
return (
|
||||
<>
|
||||
|
Loading…
x
Reference in New Issue
Block a user