mirror of
https://github.com/nicotsx/zerobyte.git
synced 2026-04-17 21:37:06 -04:00
43 lines
832 B
TypeScript
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,
|
|
},
|
|
});
|