Skip to content

Commit

Permalink
Change backend for the live map (electricitymaps#3422)
Browse files Browse the repository at this point in the history
  • Loading branch information
skovhus authored Sep 30, 2021
1 parent 0d75b01 commit fafc3f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '3.5'
services:
mockserver:
build: mockserver
ports: ['9000:8000']
ports: ['8001:8000']
volumes:
- './mockserver/public:/home/public'
- './mockserver/server.py:/home/server.py'
Expand Down
2 changes: 1 addition & 1 deletion web/src/helpers/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function isUsingLocalEndpoint() {
}

export function getEndpoint() {
return isUsingLocalEndpoint() ? 'http://localhost:9000' : 'https://api.electricitymap.org';
return isUsingLocalEndpoint() ? 'http://localhost:8001' : 'https://app-backend.electricitymap.org';
}

export function protectedJsonRequest(path) {
Expand Down

0 comments on commit fafc3f5

Please sign in to comment.