Create a .env file with the backend url. Here's an example:
VITE_BACKEND_URL=http://localhost:5000
Replace the url with the url of the backend.
Then run the following commands:
yarn && yarn dev