mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-25 04:20:02 +00:00
31 lines
681 B
TypeScript
31 lines
681 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 { nitro } from 'nitro/vite';
|
|
|
|
export default defineConfig({
|
|
server: {
|
|
port: 3000,
|
|
},
|
|
plugins: [
|
|
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',
|
|
},
|
|
},
|
|
});
|