陈帅 преди 7 години
родител
ревизия
e7c8f808df
променени са 1 файла, в които са добавени 13 реда и са изтрити 0 реда
  1. 13 0
      netlify.toml

+ 13 - 0
netlify.toml

@@ -0,0 +1,13 @@
+[[redirects]]
+  from = "/api/*"
+  to = "https://us-central1-antd-pro.cloudfunctions.net/api/api/:splat"
+  status = 200
+  force = true
+  [redirects.headers]
+    X-From = "Netlify"
+    X-Api-Key = "some-api-key-string"
+
+[[redirects]]
+  from = "/*"
+  to = "/index.html"
+  status = 200