diff --git a/src/tictactoe/providers/NakamaProvider.tsx b/src/tictactoe/providers/NakamaProvider.tsx index 9cd5524..fbaef3c 100644 --- a/src/tictactoe/providers/NakamaProvider.tsx +++ b/src/tictactoe/providers/NakamaProvider.tsx @@ -48,9 +48,10 @@ export const NakamaContext = createContext(null!); export function NakamaProvider({ children }: { children: React.ReactNode }) { const [client] = useState( () => new Client( - import.meta.env.VITE_WS_SKEY, + import.meta.env.VITE_SERVER_KEY, import.meta.env.VITE_WS_HOST, - import.meta.env.VITE_WS_PORT + import.meta.env.VITE_WS_PORT, + import.meta.env.VITE_WS_SSL === "true" ) );