From f4d216bb07e56e992f22f6e45db57c3da3b78164 Mon Sep 17 00:00:00 2001 From: swyx Date: Fri, 30 Nov 2018 16:55:38 +0800 Subject: [PATCH 1/4] commit toml --- netlify.toml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 netlify.toml diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 00000000000..424385ecd38 --- /dev/null +++ b/netlify.toml @@ -0,0 +1,4 @@ +[build] + base = "docusaurus/website" + publish = "build" + command = "yarn build" From 877e5086dd886ae3d091362056b189117f103c7a Mon Sep 17 00:00:00 2001 From: swyx Date: Fri, 30 Nov 2018 16:57:26 +0800 Subject: [PATCH 2/4] full build path --- netlify.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netlify.toml b/netlify.toml index 424385ecd38..a2cb0eca3e1 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,4 +1,4 @@ [build] base = "docusaurus/website" - publish = "build" + publish = "docusaurus/website/build" command = "yarn build" From a0782cdaa798645d71484a08df63e390c86e0791 Mon Sep 17 00:00:00 2001 From: swyx Date: Fri, 30 Nov 2018 16:59:39 +0800 Subject: [PATCH 3/4] wow the path is long --- netlify.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netlify.toml b/netlify.toml index a2cb0eca3e1..70346f266ee 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,4 +1,4 @@ [build] base = "docusaurus/website" - publish = "docusaurus/website/build" + publish = "docusaurus/website/build/create-react-app" command = "yarn build" From 191837286b67f15c9fc6866597a83c89f1915e83 Mon Sep 17 00:00:00 2001 From: swyx Date: Fri, 30 Nov 2018 17:07:21 +0800 Subject: [PATCH 4/4] redirect --- netlify.toml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/netlify.toml b/netlify.toml index 70346f266ee..f8efefcac9a 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,4 +1,10 @@ [build] base = "docusaurus/website" - publish = "docusaurus/website/build/create-react-app" + publish = "docusaurus/website/build" command = "yarn build" + + +# A redirect rule with all the supported properties +[[redirects]] + from = "/" + to = "/create-react-app"