zerobyte/vite.config.ts
bcrooker ef51d665c8 feat(backups): add custom restic params to backup schedules
Allows users to pass arbitrary restic flags via a new advanced section in the create/edit schedule form. Includes DB migration, schema update, DTO, service, and restic command changes.
2026-02-27 14:46:47 -05:00

46 lines
957 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,
watch: {
usePolling: true,
ignored: ["**/data/**", "**/*.db", "**/*.db-journal", "**/*.db-wal", "**/*.db-shm"],
},
},
});