mirror of
https://github.com/aleleba/create-react-go-ssr.git
synced 2025-07-27 01:58:13 -06:00
PR-988743: Adding support to Prefix url and updating packages.
This commit is contained in:
@ -3,9 +3,10 @@ import PrincipalRoutes from './PrincipalRoutes';
|
||||
import { config } from '../../../config';
|
||||
|
||||
const App = () => {
|
||||
const { PREFIX_URL } = config;
|
||||
if(config.ENV === 'development') {
|
||||
useEffect(() => {
|
||||
const ws = new WebSocket(`wss://${config.HOST}/ws`);
|
||||
const ws = new WebSocket(`wss://${config.HOST}${PREFIX_URL}/ws`);
|
||||
ws.onmessage = (event) => {
|
||||
if (event.data === 'reload') {
|
||||
window.location.reload();
|
||||
|
Reference in New Issue
Block a user