refactor(proxy): export ProxyRules type from proxy.conf.mjs

This commit is contained in:
kamask
2026-11-10 16:04:29 +03:00
parent 0d2c25a8f7
commit ad493f6f52
2 changed files with 5 additions and 4 deletions
+3 -1
View File
@@ -1,7 +1,9 @@
// @ts-check
// Повторяет `location /pb/` из docs/architecture.md (раздел 7): только пути с префиксом `/pb/`, префикс срезается.
// Формат — `server.proxy` dev-сервера Vite (@angular/build).
/** @type {Record<string, { target: string; changeOrigin?: boolean; rewrite?: (path: string) => string }>} */
/** @typedef {Record<string, { target: string; changeOrigin?: boolean; rewrite?: (path: string) => string }>} ProxyRules */
/** @type {ProxyRules} */
export default {
'/pb/': {
target: process.env['PB_URL'] || 'http://127.0.0.1:8090',