Skip to content

Commit

Permalink
chore: add VITE_SERVER_URI to .env and use for clone URL
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieSlome committed Mar 15, 2024
1 parent d299f24 commit 4151f4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .env.development
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
VITE_API_URI=http://localhost:8080
VITE_API_URI=http://localhost:8080
VITE_SERVER_URI=http://localhost:8000
4 changes: 1 addition & 3 deletions src/ui/views/RepoList/Components/RepoOverview.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -604,9 +604,7 @@ export default function Repositories(props) {
setAnchorEl(event.currentTarget);
setOpen((prev) => placement !== newPlacement || !prev);
setPlacement(newPlacement);
setCloneURL(
`${window.location.origin}/${org}/${name}.git`,
);
setCloneURL(`${import.meta.env.VITE_SERVER_URI}/${org}/${name}.git`);
};

return (
Expand Down

0 comments on commit 4151f4a

Please sign in to comment.