You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before filing this issue, please ensure you're using the latest CLI by running swa --version and comparing to the latest version on npm.
swa version: 2.0.6
Are you accessing the CLI from the default port :4280 ?
No, I am using a different port number (--port) and accessing the CLI from that port
Yes, I am accessing the CLI from port :4280
Make sure you are accessing the URL printed in the console when running swa start!
ℹ️ NOTE: Make sure to enable debug logs when running any swa commands using --verbose=silly
Describe the bug
When using latest Vite (>=6.3.5) dev server and a TypeScript project, SWA CLI fails to load through the dev proxy (:4280) while it work using the Vite dev server directly (:5173).
The issue seems to that the MIME type is changed when going through the SWA proxy, changing from text/javascript to video/m2pt.
To Reproduce
Steps to reproduce the behavior:
Create a new project folder, and run npm create vite@latest repro -- --template lit-ts
cd repro && npm install && npm install -D @azure/static-web-apps-cli
Before filing this issue, please ensure you're using the latest CLI by running
swa --version
and comparing to the latest version on npm.swa version: 2.0.6
Are you accessing the CLI from the default port
:4280
?--port
) and accessing the CLI from that port:4280
ℹ️ NOTE: Make sure to enable debug logs when running any
swa
commands using--verbose=silly
Describe the bug
When using latest Vite (>=6.3.5) dev server and a TypeScript project, SWA CLI fails to load through the dev proxy (:4280) while it work using the Vite dev server directly (:5173).
The issue seems to that the MIME type is changed when going through the SWA proxy, changing from
text/javascript
tovideo/m2pt
.To Reproduce
Steps to reproduce the behavior:
npm create vite@latest repro -- --template lit-ts
cd repro && npm install && npm install -D @azure/static-web-apps-cli
swa-cli.config.json
:npx swa start
Expected behavior
Requests going through the proxy do not alter the MIME type
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: