* refactor: move to tanstack start * refactor: auth flow & volumes * refactor: repo & snapshot details * refactor: backups, create repo, volumes * refactor: create volume & restore snapshot * refactor: notifications * refactor: settings * refactor: breadcrumbs * fix: ts issues * refactor: prod deployment * fix: import css production * refactor: nitro build * refactor: winston -> consola * fix: memory leak is sse events cleanup * fix: cli usage * chore: remove rr routes file * refactor: pr feedbacks * refactor: patch api client to have a global client per call * refactor: pr feedbacks * fix(dockerfile): add explicit port * fix(e2e): healthcheck under /api
36 lines
723 B
TypeScript
36 lines
723 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",
|
|
},
|
|
}),
|
|
nitro({ preset: "bun" }),
|
|
viteReact({
|
|
babel: {
|
|
plugins: ["babel-plugin-react-compiler"],
|
|
},
|
|
}),
|
|
tailwindcss(),
|
|
],
|
|
build: {
|
|
outDir: "dist",
|
|
sourcemap: false,
|
|
rollupOptions: {
|
|
external: ["bun"],
|
|
},
|
|
},
|
|
server: {
|
|
host: "0.0.0.0",
|
|
port: 3000,
|
|
},
|
|
});
|