From c7ffdda926d73b0fde0805ac464e29f5f5c435ea Mon Sep 17 00:00:00 2001 From: Franck Royer Date: Mon, 10 May 2021 21:02:24 +1000 Subject: [PATCH] Add netlify config --- netlify.toml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 netlify.toml diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 0000000000..aef4684080 --- /dev/null +++ b/netlify.toml @@ -0,0 +1,21 @@ +[build] +publish = "build/html/" + +# Default build command. +command = ''' +npm install +npm run build +npm run doc:html +cd examples/web-chat +npm install +npm run build +cd ../../ +mkdir -p ./build/html +mv -v examples/web-chat/build ./build/html/js-waku +mv -v build/docs ./build/html/ +''' + +[[redirects]] +from = "/" +to = "/js-waku" +status = 200