feat: добавил HTTP-эндпоинт для фронтенда в конфигурацию Aspire

This commit is contained in:
2026-05-11 01:32:51 +03:00
parent 75282fe8dd
commit 71e7d84e0f
+1
View File
@@ -9,6 +9,7 @@ var api = builder
builder
.AddExecutable("universe-frontend", "pnpm", workingDirectory: "../../frontend")
.WithArgs("run", "dev:aspire")
.WithHttpEndpoint(targetPort: 5173, port: 5173, name: "http", isProxied: false)
// Используется в vite.config.ts для server.proxy['/api'].target
.WithEnvironment("VITE_API_PROXY_TARGET", api.GetEndpoint("http"));