Add netlify config

This commit is contained in:
Franck Royer 2021-05-10 21:02:24 +10:00
parent faf5f46a35
commit c7ffdda926
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 21 additions and 0 deletions

21
netlify.toml Normal file
View File

@ -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