From 24fac79ea2e774956e3c4fdf01774b073fdac28c Mon Sep 17 00:00:00 2001 From: highperfocused Date: Fri, 21 Nov 2025 23:32:21 +0100 Subject: [PATCH] make it deployable to github pages and fix npm run test errors --- index.html | 5 +++++ public/manifest.webmanifest | 21 +++++++++++++++++++++ src/AppRouter.tsx | 2 +- src/main.tsx | 3 --- src/pages/Index.tsx | 2 -- vite.config.ts | 3 ++- 6 files changed, 29 insertions(+), 7 deletions(-) create mode 100644 public/manifest.webmanifest diff --git a/index.html b/index.html index cd5ada1..64c5571 100644 --- a/index.html +++ b/index.html @@ -3,6 +3,11 @@ + Lumina - A Modern Nostr Client + + + + diff --git a/public/manifest.webmanifest b/public/manifest.webmanifest new file mode 100644 index 0000000..40909a8 --- /dev/null +++ b/public/manifest.webmanifest @@ -0,0 +1,21 @@ +{ + "name": "Lumina", + "short_name": "Lumina", + "description": "A modern Nostr client application", + "start_url": "/", + "display": "standalone", + "background_color": "#ffffff", + "theme_color": "#000000", + "icons": [ + { + "src": "/icon-192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "/icon-512.png", + "sizes": "512x512", + "type": "image/png" + } + ] +} diff --git a/src/AppRouter.tsx b/src/AppRouter.tsx index 2db53ee..64bf2b8 100644 --- a/src/AppRouter.tsx +++ b/src/AppRouter.tsx @@ -7,7 +7,7 @@ import NotFound from "./pages/NotFound"; export function AppRouter() { return ( - + } /> diff --git a/src/main.tsx b/src/main.tsx index e263904..730e0ee 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -7,9 +7,6 @@ import { ErrorBoundary } from '@/components/ErrorBoundary'; import App from './App.tsx'; import './index.css'; -// FIXME: a custom font should be used. Eg: -// import '@fontsource-variable/'; - createRoot(document.getElementById("root")!).render( diff --git a/src/pages/Index.tsx b/src/pages/Index.tsx index 4427de5..92425e6 100644 --- a/src/pages/Index.tsx +++ b/src/pages/Index.tsx @@ -1,7 +1,5 @@ import { useSeoMeta } from '@unhead/react'; -// FIXME: Update this page (the content is just a fallback if you fail to update the page) - const Index = () => { useSeoMeta({ title: 'Welcome to Your Blank App', diff --git a/vite.config.ts b/vite.config.ts index 650ac55..d70d08d 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -4,7 +4,8 @@ import react from "@vitejs/plugin-react-swc"; import { defineConfig } from "vitest/config"; // https://vitejs.dev/config/ -export default defineConfig(() => ({ +export default defineConfig(({ mode }) => ({ + base: mode === 'production' && process.env.GITHUB_ACTIONS ? '/mkstack-onboarding-tool/' : '/', server: { host: "::", port: 8080,