Skip to content

Commit

Permalink
Add netlify config (#2999)
Browse files Browse the repository at this point in the history
  • Loading branch information
arikfr authored Oct 28, 2018
1 parent 4a846f0 commit 500c828
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
[build]
base = "client"
publish = "client/dist"
command = "npm install && npm run build"

[[redirects]]
from = "/api/*"
to = "http://preview-backend.redashapp.com/api/:splat"
status = 200

[[redirects]]
from = "/login"
to = "http://preview-login.redashapp.com/login"
status = 200

[[redirects]]
from = "/logout"
to = "http://preview-backend.redashapp.com/logout"
status = 200

[[redirects]]
from = "/status.json"
to = "http://preview-backend.redashapp.com/status.json"
status = 200

[[redirects]]
from = "/static/server*"
to = "http://preview-backend.redashapp.com/static/server:splat"
status = 200

[[redirects]]
from = "/static/*"
to = "/:splat"
status = 200

[[redirects]]
from = "/*"
to = "/index.html"
status = 200

0 comments on commit 500c828

Please sign in to comment.