From f6865bb37177ac192c1c55395497c54fdbb6ee63 Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Tue, 28 Jan 2020 20:18:38 +0100 Subject: Revert "Update netlify.toml" This reverts commit a441d3e5284bf1883a55810e7387b43ff4836de3. --- netlify.toml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/netlify.toml b/netlify.toml index 49b3af9..5c94b41 100644 --- a/netlify.toml +++ b/netlify.toml @@ -4,7 +4,6 @@ publish = "dist/" command = "npm run build" [[redirects]] - from = "/api/*" - to = "https://api-puszcza.netlify.com/api/:splat" - status = 200 - force = true + from = "/api/posts" + to = "/api/posts.json" + status = 200 \ No newline at end of file -- cgit 1.4.1 From 7257636f6dd1d62056ab072e169d5c1a79d41a64 Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Tue, 28 Jan 2020 20:18:42 +0100 Subject: Revert "Delete _redirects" This reverts commit 8aa75ffbe661684fffcfe8f20a4da066c34c9813. --- static/_redirects | 1 + 1 file changed, 1 insertion(+) create mode 100644 static/_redirects diff --git a/static/_redirects b/static/_redirects new file mode 100644 index 0000000..20cb17f --- /dev/null +++ b/static/_redirects @@ -0,0 +1 @@ +/api https://api-puszcza.netlify.com/api -- cgit 1.4.1 From 13c55f4d5fca3e3452317322e387f75e0690f9c8 Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Tue, 28 Jan 2020 20:19:08 +0100 Subject: Revert "Create _redirects" This reverts commit b4b7dddcfa40244d199d70cf44e8923edee85efa. --- static/_redirects | 1 - 1 file changed, 1 deletion(-) delete mode 100644 static/_redirects diff --git a/static/_redirects b/static/_redirects deleted file mode 100644 index 20cb17f..0000000 --- a/static/_redirects +++ /dev/null @@ -1 +0,0 @@ -/api https://api-puszcza.netlify.com/api -- cgit 1.4.1 From b19c5392dfe4ce86a32c99d02503158d40b9ac19 Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Wed, 29 Jan 2020 12:45:02 +0100 Subject: Update netlify.toml --- netlify.toml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/netlify.toml b/netlify.toml index 5c94b41..49b3af9 100644 --- a/netlify.toml +++ b/netlify.toml @@ -4,6 +4,7 @@ publish = "dist/" command = "npm run build" [[redirects]] - from = "/api/posts" - to = "/api/posts.json" - status = 200 \ No newline at end of file + from = "/api/*" + to = "https://api-puszcza.netlify.com/api/:splat" + status = 200 + force = true -- cgit 1.4.1