import { defineConfig } from 'vite' import { devtools } from '@tanstack/devtools-vite' import { tanstackStart } from '@tanstack/react-start/plugin/vite' import viteReact from '@vitejs/plugin-react' const config = defineConfig({ resolve: { tsconfigPaths: true }, // Fail loudly if port 3000 is taken instead of silently picking another // port — a silent port change breaks Better Auth's origin check, since // BETTER_AUTH_URL is pinned to http://localhost:3000. server: { strictPort: true }, plugins: [devtools(), tanstackStart(), viteReact()], }) export default config