Use new env variables

This commit is contained in:
Valtteri Karesto
2022-03-16 18:59:37 +02:00
parent f849be1f80
commit c82c35b5a1

View File

@@ -4,6 +4,11 @@ import { devtools } from 'valtio/utils';
import { XrplClient } from "xrpl-client"; import { XrplClient } from "xrpl-client";
import { SplitSize } from "./actions/persistSplits"; import { SplitSize } from "./actions/persistSplits";
declare module "valtio" {
function useSnapshot<T extends object>(p: T): T;
function snapshot<T extends object>(p: T): T;
}
export interface IFile { export interface IFile {
name: string; name: string;
language: string; language: string;
@@ -123,7 +128,7 @@ const state = proxy<IState>({
logs: [], logs: [],
}); });
// Initialize socket connection // Initialize socket connection
const client = new XrplClient("wss://hooks-testnet-v2.xrpl-labs.com"); const client = new XrplClient(process.env.NEXT_PUBLIC_TESTNET_URL);
client.on("online", () => { client.on("online", () => {
state.client = ref(client); state.client = ref(client);