1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-10-28 14:45:52 -04:00

use latest novnc from source

This commit is contained in:
2022-02-13 10:26:07 -05:00
parent c3ab3559af
commit 090a485c8a
3 changed files with 22 additions and 20 deletions

View File

@@ -8,6 +8,9 @@ import type { ReactElement } from "react";
// obviously, an interactive VNC display will not work even a little bit server-side
const VNC = dynamic(() => import("../components/VNC/VNC"), { ssr: false });
// https://github.com/jakejarvis/y2k
const SOCKET_PROXY = "wss://y2k.jrvs.io";
const Y2K = () => {
// print a fancy console message (in browser only) just for funsies
useEffect(() => {
@@ -36,7 +39,7 @@ const Y2K = () => {
}}
/>
<VNC server="wss://y2k.jrvs.io" />
<VNC server={SOCKET_PROXY} />
</>
);
};