Skip to content

Commit

Permalink
feat: handle 404 PE-5161
Browse files Browse the repository at this point in the history
  • Loading branch information
fedellen committed Dec 8, 2023
1 parent 8b9118a commit ce7e2fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ jobs:
- name: Build
run: yarn build

- name: Copy index.html to 404.html
run: cp ./dist/index.html ./dist/404.html

- name: Deploy gh-pages if on prod
uses: JamesIves/[email protected]
with:
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import nodePolyfills from "vite-plugin-node-stdlib-browser";

// https://vitejs.dev/config/
export default defineConfig({
// base: "/turbo-app/",
base: "/turbo-app/",
plugins: [react(), nodePolyfills()],
define: {
"import.meta.env.PACKAGE_VERSION": JSON.stringify(packageJson.version),
Expand Down

0 comments on commit ce7e2fa

Please sign in to comment.