diff --git a/server/admin-next/index.html b/server/admin-next/index.html index 6689d9cc..7b82032c 100644 --- a/server/admin-next/index.html +++ b/server/admin-next/index.html @@ -2,7 +2,7 @@ - + Tailchat Admin diff --git a/server/admin-next/package.json b/server/admin-next/package.json index 622c48e2..45df6dde 100644 --- a/server/admin-next/package.json +++ b/server/admin-next/package.json @@ -25,7 +25,7 @@ "react": "^18.2.0", "react-dom": "^18.2.0", "tailchat-server-sdk": "workspace:^", - "tushan": "^0.2.9", + "tushan": "^0.2.10", "vite-express": "0.8.0" }, "devDependencies": { diff --git a/server/admin-next/public/favicon.ico b/server/admin-next/public/favicon.ico new file mode 100644 index 00000000..94ac22cf Binary files /dev/null and b/server/admin-next/public/favicon.ico differ diff --git a/server/admin-next/public/logo.svg b/server/admin-next/public/logo.svg deleted file mode 100644 index 7eabef97..00000000 --- a/server/admin-next/public/logo.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/server/admin-next/src/client/App.tsx b/server/admin-next/src/client/App.tsx index 9912e249..d177cec8 100644 --- a/server/admin-next/src/client/App.tsx +++ b/server/admin-next/src/client/App.tsx @@ -32,6 +32,8 @@ function App() { return ( } dataProvider={dataProvider} authProvider={authProvider} diff --git a/server/admin-next/vite.config.ts b/server/admin-next/vite.config.ts index ad4b0d2a..0a0e1e34 100644 --- a/server/admin-next/vite.config.ts +++ b/server/admin-next/vite.config.ts @@ -2,7 +2,13 @@ import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; // https://vitejs.dev/config/ -export default defineConfig({ +export default defineConfig(({ mode }) => ({ base: '/admin', plugins: [react()], -}); + server: { + // just for link tushan + fs: { + strict: mode === 'development' ? false : true, + }, + }, +}));