mirror of
https://github.com/nimbusdotstorage/Nimbus
synced 2026-04-22 17:45:03 +02:00
TANNNERRRRRRRROUTTERRRRRR
This commit is contained in:
35
apps/web/vite.config.ts
Normal file
35
apps/web/vite.config.ts
Normal file
@@ -0,0 +1,35 @@
|
||||
import tanstackRouter from "@tanstack/router-plugin/vite";
|
||||
import tsconfigPaths from "vite-tsconfig-paths";
|
||||
import react from "@vitejs/plugin-react";
|
||||
import { defineConfig } from "vite";
|
||||
import path from "path";
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
tanstackRouter({
|
||||
routesDirectory: "./src/routes",
|
||||
generatedRouteTree: "./src/routeTree.gen.ts",
|
||||
routeFileIgnorePrefix: "-",
|
||||
quoteStyle: "double",
|
||||
}),
|
||||
react(),
|
||||
tsconfigPaths(),
|
||||
],
|
||||
resolve: {
|
||||
alias: {
|
||||
"@": path.resolve(__dirname, "./src"),
|
||||
"@/public": path.resolve(__dirname, "./public"),
|
||||
},
|
||||
},
|
||||
server: {
|
||||
port: 3000,
|
||||
host: true,
|
||||
},
|
||||
build: {
|
||||
outDir: "dist",
|
||||
sourcemap: true,
|
||||
},
|
||||
optimizeDeps: {
|
||||
exclude: ["@nimbus/auth", "@nimbus/env", "@nimbus/server", "@nimbus/shared"],
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user