mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-25 04:20:02 +00:00
38 lines
764 B
TypeScript
38 lines
764 B
TypeScript
import react from '@vitejs/plugin-react';
|
|
import { tanstackStart } from '@tanstack/react-start/plugin/vite';
|
|
import { defineConfig } from 'vite';
|
|
import tailwindcss from '@tailwindcss/vite';
|
|
import mdx from 'fumadocs-mdx/vite';
|
|
import { i18n } from './src/lib/i18n';
|
|
|
|
export default defineConfig({
|
|
server: {
|
|
port: 3000,
|
|
},
|
|
plugins: [
|
|
mdx(),
|
|
tailwindcss(),
|
|
tanstackStart({
|
|
prerender: {
|
|
enabled: true,
|
|
},
|
|
pages: [
|
|
...i18n.languages.map((lang) => ({
|
|
path: `/${lang}`,
|
|
})),
|
|
{
|
|
path: '/',
|
|
prerender: { enabled: false },
|
|
},
|
|
],
|
|
}),
|
|
react(),
|
|
],
|
|
resolve: {
|
|
tsconfigPaths: true,
|
|
alias: {
|
|
tslib: 'tslib/tslib.es6.js',
|
|
},
|
|
},
|
|
});
|