37 lines
967 B
TypeScript
37 lines
967 B
TypeScript
import { defineConfig } from 'vite';
|
|
import mdx from 'fumadocs-mdx/vite';
|
|
import { nitro } from 'nitro/vite';
|
|
import react from '@vitejs/plugin-react';
|
|
import tailwindcss from '@tailwindcss/vite';
|
|
import { tanstackStart } from '@tanstack/react-start/plugin/vite';
|
|
import tsConfigPaths from 'vite-tsconfig-paths';
|
|
|
|
export default defineConfig({
|
|
server: {
|
|
port: 3000
|
|
},
|
|
base: '/docs',
|
|
plugins: [
|
|
mdx(await import('./source.config')),
|
|
tailwindcss(),
|
|
tsConfigPaths({
|
|
projects: ['./tsconfig.json']
|
|
}),
|
|
tanstackStart(),
|
|
react(),
|
|
// see https://tanstack.com/start/latest/docs/framework/react/guide/hosting for hosting config
|
|
// we configured nitro by default
|
|
nitro()
|
|
// {
|
|
// routeRules: {
|
|
// '/': {
|
|
// proxy: 'https://classroomio-com.vercel.app/'
|
|
// },
|
|
// '/:match*': {
|
|
// proxy: 'https://classroomio-com.vercel.app/:match*'
|
|
// }
|
|
// }
|
|
// }
|
|
]
|
|
});
|