Address PR review feedback (#1502)

- Bump workflow model lane changeset to minor

- Clear pending workflow model edits after value reload failures

- Exclude Vite source module requests with query strings from API proxy
This commit is contained in:
gsxdsm
2026-06-07 22:56:35 -07:00
parent 4ac47642f9
commit 7850b08a18
3 changed files with 4 additions and 2 deletions

View File

@@ -167,6 +167,7 @@ export function ProjectModelsSection({
} catch {
if (reqSeq.current === seq) {
setWorkflowPayload(null);
setWorkflowPending({});
setWorkflowRejections({});
setResolvedWorkflowId(defaultWorkflowId);
addToast(t("settings.models.workflowLanesLoadFailed", "Failed to load workflow model settings"), "error");

View File

@@ -199,7 +199,8 @@ export default defineConfig({
},
server: {
proxy: {
"^/api(?!/.*\\.ts$)(/|$)": {
// Keep Vite source modules under app/api* on the dev server while proxying real API endpoints.
"^/api(?!/.*\\.[jt]sx?(?:\\?|$))(/|$)": {
target: `http://localhost:${process.env.FUSION_API_PORT ?? "4040"}`,
changeOrigin: true,
ws: true,