microsoft / vscode-azurestaticwebapps

Azure Static Web Apps extension for VS Code
https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurestaticwebapps
MIT License
88 stars 35 forks source link

The webpage displays "This HTTP triggered function executed successfully..." when debugging the "angular-basic" project #611

Closed v-mengwe closed 2 years ago

v-mengwe commented 2 years ago

OS: Win10 Build Version: 20220128.1 Regression: Not a regression

Repro Steps:

  1. Clone https://github.com/staticwebdev/angular-basic -> Open the project in VS Code.
  2. Open VS Code terminal and run "npm install" -> Create a TypeScript HTTP endpoint, named "message".
  3. Go to the "Run and Debug" menu -> Select "Azure Static Web Apps…" -> Select "SWA: Run angular-basic" -> Click the "Run" button.
  4. Navigate to "http://localhost:4280/api/message" in the Chrome window.
  5. Check whether the webpage displays "Hello World".

Expect: The webpage displays "Hello World". image

Actual: The webpage displays "This HTTP triggered function executed successfully...". image

wwlorey commented 2 years ago

It looks like the screenshot in our docs were inaccurate - we'll get that fixed. Good find 👍