Skip to content

Commit 7da9d38

Browse files
committed
fix: HTTP URL
1 parent c157cea commit 7da9d38

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ RUN cd server && cargo build --release
1717

1818
# Expose and run
1919
EXPOSE 80
20-
CMD cargo run --release
20+
CMD cd server && cargo run --release

client/src/http.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import axios from 'axios';
22

33
export default axios.create({
4-
baseURL: window.location.host + '/api'
4+
baseURL: `//${window.location.host}/api`
55
});

0 commit comments

Comments
 (0)