mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-06-06 18:31:00 +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 = {
|
const appConfig = {
|
||||||
defaultRelayUrls: [
|
defaultRelayUrls: [
|
||||||
// "wss://nos.lol/",
|
"wss://nos.lol/",
|
||||||
// "wss://relay.damus.io/",
|
"wss://relay.damus.io/",
|
||||||
// "wss://relay.snort.social/",
|
"wss://relay.snort.social/",
|
||||||
// "wss://relay.nostr.band/",
|
"wss://relay.nostr.band/",
|
||||||
// "wss://relay.mutinywallet.com/",
|
"wss://relay.mutinywallet.com/",
|
||||||
// "wss://relay.primal.net/",
|
"wss://relay.primal.net/",
|
||||||
// "wss://nostr21.com/",
|
"wss://nostr21.com/",
|
||||||
// "wss://nostrue.com/",
|
"wss://nostrue.com/",
|
||||||
// "wss://purplerelay.com/",
|
"wss://purplerelay.com/",
|
||||||
"wss://relay.devs.tools/"
|
"wss://relay.devs.tools/"
|
||||||
],
|
],
|
||||||
// ganon "468f729dd409053dac5e7470622c3996aad88db6ed1de9165cb1921b5ab4fd5e",
|
// ganon "468f729dd409053dac5e7470622c3996aad88db6ed1de9165cb1921b5ab4fd5e",
|
||||||
|
@ -6,13 +6,9 @@ import appConfig from "@/config/appConfig";
|
|||||||
|
|
||||||
const NDKContext = createContext(null);
|
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 }) => {
|
export const NDKProvider = ({ children }) => {
|
||||||
const [ndk, setNdk] = useState(null);
|
const [ndk, setNdk] = useState(null);
|
||||||
// todo: remove this after testing phase
|
const [userRelays, setUserRelays] = useLocalStorage("userRelays", appConfig.defaultRelayUrls);
|
||||||
// const [userRelays, setUserRelays] = useLocalStorage("userRelays", appConfig.defaultRelayUrls);
|
|
||||||
const [userRelays, setUserRelays] = useState([...readOnlyRelays, "wss://relay.devs.tools"]);
|
|
||||||
|
|
||||||
const createNDKInstance = (relays) => {
|
const createNDKInstance = (relays) => {
|
||||||
const allRelays = [...new Set([...appConfig.defaultRelayUrls, ...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 { createRole } from "@/db/models/roleModels";
|
||||||
import appConfig from "@/config/appConfig";
|
import appConfig from "@/config/appConfig";
|
||||||
|
|
||||||
// todo update EMAIL_FROM to be a plebdevs email
|
|
||||||
const ndk = new NDK({
|
const ndk = new NDK({
|
||||||
explicitRelayUrls: [...appConfig.defaultRelayUrls, "wss://relay.primal.net/", "wss://relay.damus.io/"]
|
explicitRelayUrls: [...appConfig.defaultRelayUrls]
|
||||||
});
|
});
|
||||||
|
|
||||||
const authorize = async (pubkey) => {
|
const authorize = async (pubkey) => {
|
||||||
|
@ -5,7 +5,6 @@ import VideosCarousel from '@/components/content/carousels/VideosCarousel';
|
|||||||
import DocumentsCarousel from '@/components/content/carousels/DocumentsCarousel';
|
import DocumentsCarousel from '@/components/content/carousels/DocumentsCarousel';
|
||||||
import HeroBanner from '@/components/banner/HeroBanner';
|
import HeroBanner from '@/components/banner/HeroBanner';
|
||||||
|
|
||||||
// todo: make paid course video and document lessons not appear in carousels
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user