- Initialize bun project with all frontend/backend dependencies - Configure Vite with TanStack Router plugin, React, and Tailwind v4 - Create Hono server with health check and static file serving - Set up TanStack Router file-based routes with root layout - Add Drizzle config, Biome linter, and proper .gitignore Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
27 lines
630 B
TypeScript
27 lines
630 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
import { TanStackRouterVite } from "@tanstack/router-plugin/vite";
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
TanStackRouterVite({
|
|
target: "react",
|
|
autoCodeSplitting: true,
|
|
routesDirectory: "./src/client/routes",
|
|
generatedRouteTree: "./src/client/routeTree.gen.ts",
|
|
}),
|
|
react(),
|
|
tailwindcss(),
|
|
],
|
|
server: {
|
|
proxy: {
|
|
"/api": "http://localhost:3000",
|
|
"/uploads": "http://localhost:3000",
|
|
},
|
|
},
|
|
build: {
|
|
outDir: "dist/client",
|
|
},
|
|
});
|