Initial commit of vite-saas template

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Rami Bitar
2026-10-04 13:16:12 -04:00
co-authored by Claude Opus 5.5
commit fd1b32640a
97 changed files with 15018 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
import { defineConfig } from 'vite';
import { tanstackStart } from '@tanstack/react-start/plugin/vite';
import react from '@vitejs/plugin-react';
import tailwindcss from '@tailwindcss/vite';
import { fileURLToPath, URL } from 'node:url';
export default defineConfig(async ({ command }) => ({
server: { port: 3000 },
plugins: [
// Start must come before the React plugin.
tanstackStart(),
// Hosting adapter for `vite build`: Nitro packages Start's server for the
// host (a Vercel Function when building on Vercel, a Node server in
// .output/ elsewhere). Dev never loads it, so `vite dev` — and the
// nodesandbox runtime — run plain Vite + TanStack Start.
...(command === 'build' ? [(await import('nitro/vite')).nitro()] : []),
react(),
tailwindcss(),
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
},
},
}));