From 563a80c6bac432b65ca5fb972560121e137b90a8 Mon Sep 17 00:00:00 2001 From: Orion Reed Date: Sat, 12 Aug 2023 21:04:05 +0100 Subject: [PATCH] added SPA 404 to build --- package.json | 2 +- src/index.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index a5335ca..4755599 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "scripts": { "dev": "vite", "prebuild": "node scripts/prebuild.mjs", - "build": "node scripts/prebuild.mjs && vite build", + "build": "node scripts/prebuild.mjs && vite build && cp 404.html dist/404.html", "preview": "vite preview" }, "dependencies": { diff --git a/src/index.tsx b/src/index.tsx index d5d172a..f277f1d 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -27,13 +27,13 @@ export function App() { return ( - + - + )