Skip to content

Default travel planner frontend to Static Web App /api route - #450

Merged
Manvir Kaur (manvkaur) merged 3 commits into
mainfrom
manvkaur-fix-travel-planner-frontend-api-url
Nov 18, 2026
Merged

Manvir Kaur (manvkaur) merged 3 commits into
mainfrom
manvkaur-fix-travel-planner-frontend-api-url

Conversation

@manvkaur

@manvkaur Manvir Kaur (manvkaur) commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Purpose

  • Fix the deployed AI travel planner frontend to call the linked Function App at /api by default, while retaining the localhost default for development.
  • Correct deployment instructions to use VITE_API_URL and document the environment-specific defaults, local port alignment, and tested production-deployment workaround.
  • Fix Bicep source warnings, including the storage table endpoint and conditional identity, monitoring, and network references.
    Bicep reported no-unnecessary-dependson warnings for all seven removed entries. Their dependencies are still inferred from module output references.

Does this introduce a breaking change?

[ ] Yes
[x] No

Pull Request Type

What kind of change does this Pull Request introduce?

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[x] Documentation content changes
[ ] Other... Please describe:

How to Test

  • Get the code
git clone https://github.com/Azure-Samples/Durable-Task-Scheduler.git
cd Durable-Task-Scheduler
git checkout manvkaur-fix-travel-planner-frontend-api-url
# Follow the sample README for language-specific setup.
  • Test the code
cd samples\durable-functions\dotnet\AiAgentTravelPlanOrchestrator\Frontend
npm ci         # Passed
npm run build  # Passed; built bundle uses /api

From the repository root:

az bicep build --file samples\durable-functions\dotnet\AiAgentTravelPlanOrchestrator\infra\main.bicep --outfile template.json --only-show-errors  # Passed
git diff --check  # Passed

Azure deployment validation of the Function App module passed for user-assigned and system-assigned identity configurations.

What to Check

Verify that the following are valid

  • Production uses /api unless overridden with VITE_API_URL; development defaults to http://localhost:7071/api.
  • Deployment documentation uses VITE_API_URL and describes the tested production deployment workaround.
  • Storage uses the correct blob, queue, and table service endpoints; optional identity, monitoring, and network references are guarded.

Other Information

Public Azure verification, performed before the Bicep changes were added, confirmed the linked frontend/backend can start and poll an orchestration, accept approval, and display a simulated booking confirmation. Azure Monitor received 124 successful Foundry HTTP dependencies correlated with an explicitly supplied trace context. The updated Bicep was compiled and validated but was not deployed in that public test.

The initial azd up failed to discover the Static Web App by its service tag. Setting SWA_CLI_DEPLOY_ENV=production before azd deploy --all successfully deployed the frontend to production; a complete azd up with that setting was not verified.

This is not a full end-to-end pass: #448's oversized-status fallback omits itinerary details from the approval screen, and the private plan blob cannot be read anonymously by the frontend (HTTP 409).

Production builds now call the linked Static Web App backend at /api when VITE_API_URL is unset, while local development still defaults to http://localhost:7071/api. Update README instructions from REACT_APP_API_URL to VITE_API_URL.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@manvkaur
Manvir Kaur (manvkaur) marked this pull request as ready for review November 18, 2026 06:00
@manvkaur
Manvir Kaur (manvkaur) merged commit 1811ff4 into main Nov 18, 2026
13 checks passed
@manvkaur
Manvir Kaur (manvkaur) deleted the manvkaur-fix-travel-planner-frontend-api-url branch November 18, 2026 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants