Kopie van https://gitlab.com/studieverenigingvia/ict/centurion met een paar aanpassingen
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
centurion/frontend/src/App.tsx

21 lines
509 B

import React from 'react';
import './App.sass';
import {SocketIOProvider} from "use-socketio/lib";
import Wrapper from "./Wrapper";
const App = () => {
let host;
if (window.location.hostname === "centurion.svia.nl") {
host = "https://centurion.svia.nl";
} else {
host = window.location.protocol + "//" + window.location.hostname + ":3001";
}
return (
<SocketIOProvider url={host}>
<Wrapper/>
</SocketIOProvider>
);
};
export default App;