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,7 +1,7 @@
@font-face {
font-family: 'Karla';
src: url('fonts/karla-variable.ttf') format('truetype');
font-weight: 1 999;
font-weight: 200 800;
}
@font-face {

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) {

5
dispatch.yaml Normal file
View file

@ -0,0 +1,5 @@
dispatch:
- url: "api.crab.fit/*"
service: api
- url: "crab.fit/*"
service: default