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({ 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, }, })