feat(web): migrate application shell to TanStack Start
- replace the legacy client-only Vite bootstrap with TanStack Router routes, Start SSR, and Nitro output - compose the reusable layout, navigation, appearance, chats, and notifications blocks with application-owned data - persist UI preferences through server functions and initialize theme, sidebar, and breakpoint state before hydration - add React Query, hotkey, toaster, and responsive dashboard integration - add application-owned Lingui configuration and catalogs, mount the runtime provider, and lazily enable I18nDevtool in development - remove superseded HTML, main entry, theme provider, and application ESLint configuration
This commit is contained in:
+23
-1
@@ -1,14 +1,36 @@
|
||||
import path from "path"
|
||||
import tailwindcss from "@tailwindcss/vite"
|
||||
import { tanstackStart } from "@tanstack/react-start/plugin/vite"
|
||||
import { i18n } from "@workspace/i18n/vite"
|
||||
import react from "@vitejs/plugin-react"
|
||||
import { nitro } from "nitro/vite"
|
||||
import { defineConfig } from "vite"
|
||||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [react(), tailwindcss()],
|
||||
resolve: {
|
||||
tsconfigPaths: true,
|
||||
alias: {
|
||||
"@": path.resolve(__dirname, "./src"),
|
||||
},
|
||||
},
|
||||
optimizeDeps: {
|
||||
include: ["use-sync-external-store/shim/with-selector"],
|
||||
},
|
||||
plugins: [
|
||||
i18n(),
|
||||
tailwindcss(),
|
||||
tanstackStart({
|
||||
router: {
|
||||
generatedRouteTree: "route-tree.gen.ts",
|
||||
},
|
||||
srcDirectory: "src",
|
||||
}),
|
||||
react(),
|
||||
nitro(),
|
||||
],
|
||||
server: {
|
||||
host: "0.0.0.0",
|
||||
port: 31573,
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user