From 17488ff8a06e8ddd297130bfd9314313097ab7e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tao=20Bror=20Bojl=C3=A9n?= Date: Sun, 21 Jul 2019 10:23:50 +0300 Subject: [PATCH] fix direct links on netlify --- CHANGELOG.md | 1 + netlify.toml | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dd700ae..cb51eb2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Deprecated ### Removed ### Fixed +- Previously, direct links to /about would return a 404 on Netlify's infrastructure. Now it's fixed. ### Security ## [2.0.0] - 2019-07-20 diff --git a/netlify.toml b/netlify.toml index 635f69d..5b70f41 100644 --- a/netlify.toml +++ b/netlify.toml @@ -9,4 +9,10 @@ REACT_APP_STAGING = "true" [context.deploy-preview.environment] - REACT_APP_STAGING = "true" \ No newline at end of file + REACT_APP_STAGING = "true" + +[[redirects]] + from = "/*" + to = "/index.html" + status = 200 +