Files
zerobyte/vite.config.ts
Nico a0a813ed09 refactor: short id branded type (#552)
* refactor: short id branded type

* chore: pr feedbacks
2026-02-21 11:16:15 +01:00

43 lines
832 B
TypeScript

import tailwindcss from "@tailwindcss/vite";
import { defineConfig } from "vite";
import { tanstackStart } from "@tanstack/react-start/plugin/vite";
import { nitro } from "nitro/vite";
import tsconfigPaths from "vite-tsconfig-paths";
import viteReact from "@vitejs/plugin-react";
export default defineConfig({
plugins: [
tsconfigPaths(),
tanstackStart({
srcDirectory: "app",
router: {
routesDirectory: "routes",
},
importProtection: {
behavior: "error",
},
}),
nitro({
preset: "bun",
plugins: ["./app/server/plugins/bootstrap.ts"],
}),
viteReact({
babel: {
plugins: ["babel-plugin-react-compiler"],
},
}),
tailwindcss(),
],
build: {
outDir: "dist",
sourcemap: false,
rollupOptions: {
external: ["bun"],
},
},
server: {
host: "0.0.0.0",
port: 3000,
},
});