26 lines
566 B
TypeScript
26 lines
566 B
TypeScript
import { defineConfig } from 'vite'
|
|
import { devtools } from '@tanstack/devtools-vite'
|
|
|
|
import { tanstackStart } from '@tanstack/react-start/plugin/vite'
|
|
|
|
import viteReact from '@vitejs/plugin-react'
|
|
import tailwindcss from '@tailwindcss/vite'
|
|
|
|
const isProd = process.env['NODE_ENV'] === 'production'
|
|
|
|
const config = defineConfig({
|
|
resolve: { tsconfigPaths: true },
|
|
server: {
|
|
host: '0.0.0.0',
|
|
port: 3000,
|
|
},
|
|
plugins: [
|
|
!isProd && devtools(),
|
|
tailwindcss(),
|
|
tanstackStart(),
|
|
viteReact(),
|
|
].filter(Boolean),
|
|
})
|
|
|
|
export default config
|