We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 879b815 commit 0146001Copy full SHA for 0146001
packages/@vue/cli-service/lib/util/prepareProxy.js
@@ -49,7 +49,7 @@ module.exports = function prepareProxy (proxy, appPublicFolder) {
49
// https://github.com/facebook/create-react-app/issues/6720
50
function mayProxy (pathname) {
51
const maybePublicPath = path.resolve(appPublicFolder, pathname.slice(1))
52
- const isPublicFileRequest = fs.existsSync(maybePublicPath)
+ const isPublicFileRequest = fs.existsSync(maybePublicPath) && fs.statSync(maybePublicPath).isFile()
53
const isWdsEndpointRequest = pathname.startsWith('/sockjs-node') // used by webpackHotDevClient
54
return !(isPublicFileRequest || isWdsEndpointRequest)
55
}
0 commit comments