From 25a2c8d4efa8b1bce21279b6ead0f9fd52ddee90 Mon Sep 17 00:00:00 2001 From: RuiChen Date: Thu, 5 Sep 2024 19:44:27 +0800 Subject: [PATCH] fix base name --- package.json | 1 + src/router/Router.tsx | 2 +- vite.config.ts | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 27454fc..e267180 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,6 @@ { "name": "fabrik-example", + "homepage": "https://ruichen0101.github.io/fabrik-example/", "private": true, "version": "0.0.0", "type": "module", diff --git a/src/router/Router.tsx b/src/router/Router.tsx index 599d8d8..4336557 100644 --- a/src/router/Router.tsx +++ b/src/router/Router.tsx @@ -17,7 +17,7 @@ const FullBody = withSuspense(lazy(() => import('../3d/FullBody'))); class Router extends Component { render(): ReactNode { return ( - + }> } /> diff --git a/vite.config.ts b/vite.config.ts index 5a33944..45ba0ba 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -3,5 +3,6 @@ import react from '@vitejs/plugin-react' // https://vitejs.dev/config/ export default defineConfig({ + base: '/fabrik-example', plugins: [react()], })