Skip to content

Commit

Permalink
Fix api routing to staging/prod
Browse files Browse the repository at this point in the history
  • Loading branch information
groupsky committed Mar 3, 2020
1 parent 1b57af7 commit 80ebfeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
# proxy staging api requests
[[redirects]]
from = "/api/staging/*"
to = "https://smartbirds.org/api/:splat"
to = "https://smartbirds-staging.herokuapp.com/api/:splat"
status = 200
# proxy production api requests
[[redirects]]
from = "/api/*"
to = "https://smartbirds-staging.herokuapp.com/api/:splat"
to = "https://smartbirds.org/api/:splat"
status = 200

# proxy staging statistics
Expand Down

0 comments on commit 80ebfeb

Please sign in to comment.