From 26c4b854faf6a0bc2cb28b27327e415d81d2db40 Mon Sep 17 00:00:00 2001 From: Mars Hall Date: Sun, 23 Dec 2018 05:47:49 -0800 Subject: [PATCH] Default routing (#16) --- bin/compile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bin/compile b/bin/compile index 258952c..ed4a41e 100755 --- a/bin/compile +++ b/bin/compile @@ -36,7 +36,14 @@ then echo ' Using existing `static.json`' else echo ' Writing `static.json` to support create-react-app' - echo '{ "root": "build/" }' > static.json + cat << EOF > static.json +{ + "root": "build/", + "routes": { + "/**": "index.html" + } +} +EOF fi echo ' Enabling runtime environment variables'