From c456c844dfac05194b9b34cd9d8dcdb22f4ac0e5 Mon Sep 17 00:00:00 2001 From: Kumaran Rajendhiran Date: Mon, 6 Nov 2023 12:01:33 +0530 Subject: [PATCH] Add 404.html and copy it to build directory (#7) --- .github/workflows/pipeline.yml | 2 ++ 404.html | 40 ++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 404.html diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 883f9e7..a925a9b 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -103,6 +103,8 @@ jobs: run: wasp build - name: Build frontend run: cd .wasp/build/web-app && npm install && REACT_APP_API_URL=$REACT_APP_API_URL npm run build + - name: Copy 404.html + run: cp 404.html .wasp/build/web-app/build - name: Deploy to github pages uses: JamesIves/github-pages-deploy-action@v4 diff --git a/404.html b/404.html new file mode 100644 index 0000000..54666da --- /dev/null +++ b/404.html @@ -0,0 +1,40 @@ + + + + + Single Page Apps for GitHub Pages + + + + +