правка
Tests / frontend-test (pull_request) Successful in 12s

This commit is contained in:
2026-08-24 12:10:11 +05:00
parent 89168024df
commit 948ef76d17
4 changed files with 43 additions and 9 deletions
+10 -1
View File
@@ -12,7 +12,16 @@ export default defineConfig({
},
server: {
port: 3000,
open: true
open: true,
// Как nginx в проде (nginx.conf): /api/... идёт на hr-appeals-auth без
// префикса. Локально сервис запускаем на 3100 — порт 3000 занят самим vite.
proxy: {
'/api': {
target: 'http://localhost:3100',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '')
}
}
},
test: {
// globals: true — describe/it/expect доступны без импорта, как привычно по Jest.