2025-12-21 12:37:06 +00:00
|
|
|
import { defineConfig } from 'vite';
|
|
|
|
|
import mdx from 'fumadocs-mdx/vite';
|
2026-04-12 08:58:41 +01:00
|
|
|
import { reactRouter } from '@react-router/dev/vite';
|
2026-05-19 05:28:50 +01:00
|
|
|
import { cloudflare } from '@cloudflare/vite-plugin';
|
2025-12-21 12:37:06 +00:00
|
|
|
import tailwindcss from '@tailwindcss/vite';
|
|
|
|
|
import tsConfigPaths from 'vite-tsconfig-paths';
|
|
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
server: {
|
2026-04-12 08:58:41 +01:00
|
|
|
host: '127.0.0.1',
|
2025-12-21 12:37:06 +00:00
|
|
|
port: 3000
|
|
|
|
|
},
|
2026-05-19 06:49:16 +01:00
|
|
|
base: '/docs/',
|
2025-12-21 12:37:06 +00:00
|
|
|
plugins: [
|
2026-05-19 05:28:50 +01:00
|
|
|
cloudflare({ viteEnvironment: { name: 'ssr' } }),
|
2025-12-21 12:37:06 +00:00
|
|
|
mdx(await import('./source.config')),
|
|
|
|
|
tailwindcss(),
|
|
|
|
|
tsConfigPaths({
|
|
|
|
|
projects: ['./tsconfig.json']
|
|
|
|
|
}),
|
2026-04-12 08:58:41 +01:00
|
|
|
reactRouter()
|
2025-12-21 12:37:06 +00:00
|
|
|
]
|
|
|
|
|
});
|