-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Closed as not planned
Closed as not planned
Copy link
Labels
bug: upstreamBug in a dependency of ViteBug in a dependency of Vite
Description
Describe the bug
vite server proxy
proxy: {
'^/dev-api/.*': {
target: DEV_URL,
changeOrigin: true,
rewrite: (path) => {
return path.replace(/^\/dev-api/, '')
},
},
},
const DEV_URL = 'http://auth.test.cloud:8000'; // ok
const DEV_URL = 'https://auth.test.cloud:8000'; // ok
const DEV_URL = '//auth.test.cloud:8000'; // error so why?
so why?
Reproduction
https://stackblitz.com/edit/vitejs-vite-d1x3wu?file=vite.config.js&terminal=dev
Open and then access /foo
Steps to reproduce
No response
System Info
vite 3.1.6Used Package Manager
npm
Logs
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bug: upstreamBug in a dependency of ViteBug in a dependency of Vite