From e7c8f808df4ee4a5159b9e08e3763dc9c192974d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Wed, 24 Oct 2018 12:26:35 +0800 Subject: [PATCH] add netlify.tomal (#2651) --- netlify.toml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 netlify.toml diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 00000000..18b22e9d --- /dev/null +++ b/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 \ No newline at end of file -- GitLab