forked from ufsasewebmaster/UF-SASE-Website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.config.mjs
37 lines (36 loc) · 846 Bytes
/
app.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import { TanStackRouterVite } from "@tanstack/router-plugin/vite";
import viteReact from "@vitejs/plugin-react";
import { createApp } from "vinxi";
import tsconfigPaths from "vite-tsconfig-paths";
export default createApp({
routers: [
{
name: "public",
type: "static",
base: "/",
dir: "./public",
},
{
name: "client",
type: "spa",
handler: "./index.html",
base: "/",
target: "browser",
plugins: () => [
tsconfigPaths(),
TanStackRouterVite({
routesDirectory: "./client/routes",
generatedRouteTree: "./client/routeTree.gen.ts",
}),
viteReact(),
],
},
{
name: "server",
type: "http",
base: "/api",
handler: "./server/index.ts",
plugins: () => [tsconfigPaths()],
},
],
});