Files
docs/packages/create-app/template/tanstack-start/vite.config.ts
zeekay c6456cc2da fix: publish all docs packages and fix changeset config
- Bump @hanzo/docs-mdx 14.2.11 -> 14.3.1 (surpass orphaned 14.3.0 on npm)
- Bump @hanzo/docs-docgen 3.0.8 -> 3.1.1 (surpass orphaned 3.1.0 on npm)
- Set changeset access to public for scoped @hanzo/* packages
- Update create-app templates to use getPageMarkdownUrl() helper
2026-03-29 05:22:54 -07:00

33 lines
763 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 '@hanzo/docs-mdx/vite';
import { nitro } from 'nitro/vite';
export default defineConfig({
server: {
port: 3000,
},
plugins: [
mdx(await import('./source.config')),
tailwindcss(),
tanstackStart({
prerender: {
enabled: true,
},
}),
react(),
// please see https://tanstack.com/start/latest/docs/framework/react/guide/hosting#nitro for guides on hosting
nitro({
preset: 'vercel',
}),
],
resolve: {
tsconfigPaths: true,
alias: {
tslib: 'tslib/tslib.es6.js',
},
},
});