Skip to content

Commit

Permalink
Default routing (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
mars authored Dec 23, 2018
1 parent fe948bc commit 26c4b85
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 26c4b85

Please sign in to comment.