From e1cfb5d81b02940d43cd38b77ee5d9171f7f5dab Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Mon, 26 Nov 2018 23:31:52 -0800 Subject: [PATCH] Ensure SPA urls don't 404 --- netlify.toml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 netlify.toml diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 00000000..f52e1186 --- /dev/null +++ b/netlify.toml @@ -0,0 +1,19 @@ +[Settings] +# Added automatically by the Netlify CLI. It has no effect during normal +# Git-backed deploys. +ID = "be420a16-4ef3-43b1-ac62-35869bdf8679" + +# Settings in the [build] context are global and are applied to all contexts +# unless otherwise overridden by more specific contexts. +[build] + # Directory (relative to root of your repo) that contains the deploy-ready + # HTML files and assets generated by the build. + publish = "build/" + + # Default build command. + command = "npm run build" + +[[redirects]] + from = "/*" + to = "/index.html" + status = 200 \ No newline at end of file