Affect-Atlas / code /frontend /apps /web /vite.config.ts
Jiali9's picture
Publish Affect-Atlas manuscript, figures, and demo source
891fa77 verified
Raw History Blame Contribute Delete
694 Bytes
import { defineConfig } from 'vite'
import { tanstackStart } from '@tanstack/react-start/plugin/vite'
import viteReact from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'
export default defineConfig(({ mode }) => ({
resolve: { tsconfigPaths: true },
preview: { port: 5173, strictPort: true, host: 'localhost' },
plugins: [
tailwindcss(),
tanstackStart(mode === 'demo' ? {
pages: [{ path: '/' }, { path: '/home' }, { path: '/demo' }],
prerender: {
enabled: true,
autoStaticPathsDiscovery: false,
autoSubfolderIndex: true,
crawlLinks: false,
failOnError: true,
},
} : {}),
viteReact(),
],
}))