- добавлен Mantine theme provider и AppShell layout\n- сгенерирован Backend API клиент и добавлены infra/business хуки\n- добавлены таблица assets, detail/presets panels и create asset modal
32 lines
787 B
TypeScript
32 lines
787 B
TypeScript
import { fileURLToPath, URL } from "node:url"
|
|
|
|
import react from "@vitejs/plugin-react"
|
|
import { defineConfig } from "vite"
|
|
|
|
const srcPath = (path: string) => fileURLToPath(new URL(`./src/${path}`, import.meta.url))
|
|
const backendProxyTarget = process.env.ADMIN_BACKEND_PROXY_TARGET ?? "http://localhost:3001"
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
resolve: {
|
|
alias: {
|
|
app: srcPath("app"),
|
|
layouts: srcPath("layouts"),
|
|
screens: srcPath("screens"),
|
|
widgets: srcPath("widgets"),
|
|
business: srcPath("business"),
|
|
infra: srcPath("infra"),
|
|
ui: srcPath("ui"),
|
|
shared: srcPath("shared"),
|
|
},
|
|
},
|
|
server: {
|
|
proxy: {
|
|
"/api": {
|
|
changeOrigin: true,
|
|
target: backendProxyTarget,
|
|
},
|
|
},
|
|
},
|
|
})
|