Set up app engine dispatch rules

This commit is contained in:
Ben Grant 2022-08-19 15:52:10 +10:00
parent bd54cee952
commit db52225e46
3 changed files with 7 additions and 2 deletions

View file

@ -1,4 +1,4 @@
const API_URL = process.env.NODE_ENV === 'production' ? 'https://api-dot-crabfit.uc.r.appspot.com' : 'http://localhost:8080'
const API_URL = process.env.NODE_ENV === 'production' ? 'https://api.crab.fit' : 'http://localhost:8080'
const handleError = error => {
if (error && error.status) {