mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-25 04:20:02 +00:00
50 lines
1003 B
TypeScript
50 lines
1003 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 { nitro } from 'nitro/vite';
|
|
|
|
export default defineConfig({
|
|
server: {
|
|
port: 3000,
|
|
},
|
|
plugins: [
|
|
mdx(),
|
|
tailwindcss(),
|
|
tanstackStart({
|
|
spa: {
|
|
enabled: true,
|
|
prerender: {
|
|
enabled: true,
|
|
crawlLinks: true,
|
|
},
|
|
},
|
|
|
|
pages: [
|
|
{
|
|
path: '/docs',
|
|
},
|
|
{
|
|
path: '/api/search',
|
|
},
|
|
{
|
|
path: 'llms-full.txt',
|
|
},
|
|
{
|
|
path: 'llms.txt',
|
|
},
|
|
],
|
|
}),
|
|
react(),
|
|
// please see https://tanstack.com/start/latest/docs/framework/react/guide/hosting#nitro for guides on hosting
|
|
nitro(),
|
|
],
|
|
resolve: {
|
|
tsconfigPaths: true,
|
|
alias: {
|
|
tslib: 'tslib/tslib.es6.js',
|
|
},
|
|
},
|
|
});
|