From 213e86e8ee7bd8b4bbe1be9044828c8de884018d Mon Sep 17 00:00:00 2001 From: cokia Date: Thu, 24 Aug 2023 00:24:15 +0900 Subject: [PATCH 1/4] fix: netlify react-router-dom routing issue resolve --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 38c38f176..e2f8c6f8e 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "scripts": { "preinstall": "npx only-allow pnpm", "start": "craco start", - "build": "cross-env GENERATE_SOURCEMAP=false craco build", + "build": "cross-env GENERATE_SOURCEMAP=false craco build && echo '/* /index.html 200' | cat > ./build/_redirects", "test": "cypress open" }, "eslintConfig": { @@ -88,4 +88,4 @@ "resolutions": { "@types/react": "^17.0.2" } -} \ No newline at end of file +} From d32bb3d0e628c9256a13ee3b8ff8158226dcf44f Mon Sep 17 00:00:00 2001 From: cokia Date: Wed, 6 Sep 2023 00:16:42 +0900 Subject: [PATCH 2/4] fix: add netlify.toml --- netlify.toml | 1 + 1 file changed, 1 insertion(+) create mode 100644 netlify.toml diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 000000000..0180ba061 --- /dev/null +++ b/netlify.toml @@ -0,0 +1 @@ +[[redirects]] from = "/*" to = "/" status = 200 \ No newline at end of file From 9747dca244bdcda5b2b0168845eb1459f0dd2839 Mon Sep 17 00:00:00 2001 From: cokia Date: Wed, 6 Sep 2023 00:19:20 +0900 Subject: [PATCH 3/4] fix: add netlify.toml --- netlify.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/netlify.toml b/netlify.toml index 0180ba061..9bf9d2d25 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1 +1,5 @@ -[[redirects]] from = "/*" to = "/" status = 200 \ No newline at end of file +[[redirects]] +from = "/*" +to = "/" +force = true +status = 404 \ No newline at end of file From 7aba8b1ef7b5617d64c05c1702566ba17ceaa6f0 Mon Sep 17 00:00:00 2001 From: andyye <63383967+0ev@users.noreply.github.com> Date: Tue, 19 Mar 2024 23:39:20 +0900 Subject: [PATCH 4/4] Add: Netlify status badge and update netlify.toml redirect --- README.md | 6 +++++- netlify.toml | 7 +++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 43277bda2..f640502ec 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # SPARCS Taxi +[![Netlify Status](https://api.netlify.com/api/v1/badges/60672e1f-5076-4f27-8f4a-7c1407cbeffa/deploy-status)](https://app.netlify.com/sites/taxi-dev-preview/deploys) + KAIST Taxi Party Matching Web Service ## About @@ -38,7 +40,6 @@ $ pnpm install See [notion page](https://www.notion.so/sparcs/Environment-Variables-1b404bd385fa495bac6d5517b57d72bf). Refer to [.env.example](.env.example) and write your own `.env`. - ## Development Run scoped scripts @@ -48,6 +49,7 @@ pnpm