From 9b087cb1f6a3ece8e4fcfaeff1a26729072dfc83 Mon Sep 17 00:00:00 2001 From: yqni13 Date: Mon, 23 Sep 2024 20:45:28 +0200 Subject: [PATCH] fix: fix redirect error attempt#2 Add file (not json) in src to rewrite the redirecting for deployed page. --- angular.json | 4 ++-- src/_redirects | 1 + src/staticwebapp.config.json | 5 ----- 3 files changed, 3 insertions(+), 7 deletions(-) create mode 100644 src/_redirects delete mode 100644 src/staticwebapp.config.json diff --git a/angular.json b/angular.json index b8fa90e..9dbf13c 100644 --- a/angular.json +++ b/angular.json @@ -36,7 +36,7 @@ "assets": [ "src/favicon.ico", "src/assets", - "src/staticwebapp.config.json" + "src/_redirects" ], "styles": [ "src/styles.scss", @@ -101,7 +101,7 @@ "assets": [ "src/favicon.ico", "src/assets", - "src/staticwebapp.config.json" + "src/_redirects" ], "styles": [ "src/styles.scss", diff --git a/src/_redirects b/src/_redirects new file mode 100644 index 0000000..b21f6cb --- /dev/null +++ b/src/_redirects @@ -0,0 +1 @@ +/* /index.html 200 \ No newline at end of file diff --git a/src/staticwebapp.config.json b/src/staticwebapp.config.json deleted file mode 100644 index 1e812ac..0000000 --- a/src/staticwebapp.config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "navigationFallback": { - "rewrite": "/" - } -} \ No newline at end of file