This commit is contained in:
a.ilin
2026-10-01 23:02:29 +03:00
parent 7448081275
commit e404b2cf3d
6 changed files with 61 additions and 18 deletions
+5
View File
@@ -2,8 +2,13 @@ import { fileURLToPath, URL } from 'node:url'
import react from '@vitejs/plugin-react'
import { defineConfig } from 'vite'
// Базовый путь приложения (оканчивается на '/'): ассеты и маршруты живут под /admin/.
// Задаётся при сборке: BASE_PATH=/panel/ npm run build или --build-arg BASE_PATH=/panel/
const basePath = process.env.BASE_PATH ?? '/admin/'
// https://vite.dev/config/
export default defineConfig({
base: basePath,
plugins: [react()],
resolve: {
alias: {