mirror of
https://github.com/Rohithgilla12/data-peek
synced 2026-04-21 21:07:17 +00:00
29 lines
768 B
TypeScript
29 lines
768 B
TypeScript
import react from '@vitejs/plugin-react';
|
|
import { tanstackStart } from '@tanstack/react-start/plugin/vite';
|
|
import { defineConfig } from 'vite';
|
|
import tsConfigPaths from 'vite-tsconfig-paths';
|
|
import tailwindcss from '@tailwindcss/vite';
|
|
import mdx from 'fumadocs-mdx/vite';
|
|
import { nitro } from 'nitro/vite';
|
|
|
|
export default defineConfig({
|
|
server: {
|
|
port: 3000,
|
|
},
|
|
plugins: [
|
|
mdx(await import('./source.config')),
|
|
tailwindcss(),
|
|
tsConfigPaths({
|
|
projects: ['./tsconfig.json'],
|
|
}),
|
|
tanstackStart({
|
|
prerender: {
|
|
enabled: false,
|
|
},
|
|
}),
|
|
react(),
|
|
// see https://tanstack.com/start/latest/docs/framework/react/guide/hosting for hosting config
|
|
// we configured nitro by default
|
|
nitro(),
|
|
],
|
|
});
|