Route doesn't work on live site

site: https://ewald-janz.netlify.app/

when visiting https://ewald-janz.netlify.app/works I am getting the error in attached image

build is fine

this is my App.js – I assume the error lies here?

import {
  BrowserRouter as Router,
  Routes,
  Route,
} from "react-router-dom";
import Index from "./components/Index";
import Works from "./components/Works";


function App() {
  return (
    <div className="App">
      <Router>
        <Routes>
          <Route path="/works" element={<Works/>} />
          <Route exact path="/" element={<Index/>}/>
        </Routes>
      </Router>
    </div>
  );
}

export default App;

Thanks in advance!

See: